Get started with tsparticles-interaction-external-bubble CDN
MIT licensed
This library, tsparticles-interaction-external-bubble, enhances tsparticles.js with interactive bubbles triggered by external events.
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-bubble CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with tsparticles-interaction-external-bubble CDN - cdnhub.io</title>
<style>
#tsparticles {
height: 100vh;
width: 100%;
}
</style>
</head>
<body>
<div id="tsparticles"></div>
<script src="https://cdn.jsdelivr.net/npm/tsparticles@3.3.2/dist/tsparticles.min.js"></script>
<script src="https://cdn.cdnhub.io/tsparticles-interaction-external-bubble/2.12.0/tsparticles.interaction.external.bubble.min.js"></script>
<script>
const particlesInit = async () => {
await tsparticles.load('tsparticles', {
background: {
color: '#000'
},
fpsLimit: 60,
interactivity: {
events: {
onClick: {
mode: 'repulse'
},
onHover: {
onlyOneAtATime: true,
modes: {
grab: {
distance: 100,
duration: 0.3
},
bubble: {
distance: 50,
size: 10,
duration: 0.3,
opacity: 0.8,
color: '#ff6666'
}
}
}
},
modes: {
bubble: {
distance: 400,
size: 40,
duration: 2,
opacity: 0.8,
direction: 'none',
speed: 3
}
}
},
particles: {
number: {
value: 100,
density: {
enable: true,
value_area: 800
}
},
color: {
value: '#ffffff'
},
shape: {
type: 'circle'
},
opacity: {
value: 0.5,
random: true,
anim: {
enable: false,
speed: 1,
opacity_min: 0.1,
sync: false
}
},
size: {
value: 5,
random: true,
anim: {
enable: false,
speed: 40,
size_min: 0.1,
sync: false
}
},
line_linked: {
enable: false,
distance: 150,
color: '#ffffff',
opacity: 0.4,
width: 1
},
move: {
enable: true,
speed: 1,
direction: 'none',
random: true,
straight: false,
out_mode: 'out'
}
},
interactivity: {
detect_on: 'canvas',
areas: [
{
x: 0.5,
y: 0.5,
size: 0.5,
active: true
}
]
},
retina_detect: true
});
};
document.addEventListener('DOMContentLoaded', particlesInit);
</script>
</body>
</html>
Copied!
Copied!