Get started with tsparticles-plugin-motion CDN
MIT licensed
TsParticles-plugin-motion: Adds custom motion effects to particles.
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-motion CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with tsparticles-plugin-motion CDN - cdnhub.io</title>
<style>
#tsparticles {
height: 100vh;
width: 100vw;
}
</style>
</head>
<body>
<div id="tsparticles"></div>
<script src="https://cdn.jsdelivr.net/npm/tsparticles@0.14.1/dist/tsparticles.min.js"></script>
<script src="https://cdn.cdnhub.io/tsparticles-plugin-motion/2.12.0/tsparticles.plugin.motion.min.js"></script>
<script>
const particlesInit = async () => {
await tsparticles.load("tsparticles", {
background: {
color: "#000",
links: {
enable: false,
},
},
fpsLimit: 60,
interactivity: {
events: {
onClick: {
enable: true,
mode: "repulse",
},
onHover: {
enable: true,
mode: "grab",
},
resize: true,
},
modes: {
grab: {
distance: 100,
lineLinked: {
opacity: 0.5,
width: 1,
},
},
repulse: {
distance: 200,
duration: 0.4,
},
},
},
particles: {
color: {
value: "#fff",
anim: {
enable: true,
speed: 1,
sync: false,
},
},
links: {
color: "#fff",
distance: 150,
enable: true,
opacity: 0.5,
width: 1,
},
collisions: {
enable: true,
mode: "bubble",
type: "circle",
color: "#fff",
opacity: 0.8,
size: 40,
speed: 1,
},
move: {
direction: "none",
enable: true,
outModes: {
default: "bounce",
bottom: "bounce",
left: "bounce",
right: "bounce",
top: "bounce",
},
random: false,
speed: 1,
straight: false,
},
number: {
density: {
enable: true,
value_area: 800,
},
value: 100,
},
opacity: {
anim: {
enable: true,
speed: 1,
sync: false,
},
random: {
enable: true,
minimumValue: 0.1,
},
},
size: {
anim: {
enable: true,
speed: 1,
sync: false,
},
random: {
enable: true,
minimumValue: 0.1,
},
},
shape: {
type: "circle",
},
},
plugins: [
"tsparticles-plugin-motion",
],
});
};
document.addEventListener("DOMContentLoaded", particlesInit);
</script>
</body>
</html>
Copied!
Copied!