Get started with tsparticles-interaction-external-bounce CDN
MIT licensed
TS Particles plugin: adds bounce interaction based on mouse movement.
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-interaction-external-bounce CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with tsparticles-interaction-external-bounce CDN - cdnhub.io</title>
<style>
#tsparticles {
height: 100vh;
width: 100%;
}
</style>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/tsparticles.min.js"></script>
<script src="https://cdn.cdnhub.io/tsparticles-interaction-external-bounce/2.12.0/tsparticles.interaction.external.bounce.min.js"></script>
</head>
<body>
<div id="tsparticles"></div>
<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: {
number: {
value: 100,
density: {
enable: true,
value_area: 800
}
},
color: {
value: '#fff'
},
shape: {
type: 'circle'
},
size: {
value: 5,
random: true,
anim: {
enable: false,
speed: 1,
size_min: 0.1,
sync: false
}
},
opacity: {
value: 0.5,
random: true,
anim: {
enable: false,
speed: 1,
opacity_min: 0.1
}
}
},
interactivity: {
bounce: {
enable: true,
distance: 100,
duration: 0.4
}
}
});
particles.add(true);
</script>
</body>
</html>
Copied!
Copied!