Get started with tsparticles-all CDN
MIT licensed
Tsparticles-all is a popular library for creating particle effects in Three.js web projects.
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-all CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with tsparticles-all CDN - cdnhub.io</title>
<style>
#tsparticles {
height: 100vh;
width: 100%;
}
</style>
</head>
<body>
<div id="tsparticles"></div>
<script src="https://cdn.jsdelivr.net/npm/@tesla/[email protected]/dist/tesla.min.js"></script>
<script src="https://cdn.cdnhub.io/tsparticles-all/2.12.0/tsparticles.all.bundle.min.js"></script>
<script>
const particles = new TSParticles('tsparticles', {
background: {
color: '#000'
},
fpsLimit: 60,
interactivity: {
events: {
onClick: {
enable: true,
mode: 'repulse'
}
},
modes: {
repulse: {
distance: 200,
duration: 0.4
}
}
},
particles: {
color: {
value: '#ffffff'
},
links: {
color: '#ffffff',
distance: 150
},
move: {
direction: 'none',
enable: true,
outMode: 'out'
},
size: {
value: 5
}
},
setup: async function() {
await tsparticles.load();
}
});
particles.add(true);
</script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!