Get started with tsparticles-plugin-export-image CDN
MIT licensed
The tsparticles-plugin-export-image allows exporting particles.js animations as static images.
Tags:- tsparticles
- particles.js
- particlesjs
- particles
- particle
- canvas
- jsparticles
- xparticles
- particles-js
- particles-bg
- particles-bg-vue
- particles-ts
- particles.ts
- react-particles-js
- react-particles.js
- react-particles
- react
- reactjs
- vue-particles
- ngx-particles
- angular-particles
- particleground
- vue
- vuejs
- preact
- preactjs
- jquery
- angularjs
- angular
- typescript
- javascript
- animation
- web
- html5
- web-design
- webdesign
- css
- html
- css3
- animated
- background
- confetti
- fireworks
- fireworks-js
- confetti-js
- confettijs
- fireworksjs
- canvas-confetti
Stable version
Copied!
How to start using tsparticles-plugin-export-image CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with tsparticles-plugin-export-image CDN - cdnhub.io</title>
<style>
#tsparticles {
width: 100vw;
height: 100vh;
}
</style>
</head>
<body>
<div id="tsparticles"></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/particles.js/2.0.0/particles.min.js"></script>
<script src="https://cdn.cdnhub.io/tsparticles-plugin-export-image/2.12.0/tsparticles.plugin.export.image.min.js"></script>
<script>
particlesJS.load('tsparticles', 'assets/particles.json', {
plugins: [
{
name: 'exportImage',
options: {
fileName: 'particles.png',
width: 1024,
height: 768,
type: 'png'
}
}
]
});
document.querySelector('#export-button').addEventListener('click', function() {
particlesJS.exportImage('particles.png');
});
</script>
</body>
</html>
Copied!
Copied!