Get started with tsparticles-move-parallax CDN
MIT licensed
TSParticles: Parallax plugin adds parallax effect to Three.js 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-move-parallax CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with tsparticles-move-parallax CDN - cdnhub.io</title>
<style>
#tsparticles {
height: 100vh;
width: 100%;
}
</style>
</head>
<body>
<div id="tsparticles"></div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/worksans.min.css"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/build/three.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/tsparticles.min.js"></script>
<script src="https://cdn.cdnhub.io/tsparticles-move-parallax/2.12.0/tsparticles.move.parallax.min.js"></script>
<script>
const particles = new TSParticles({
container: document.querySelector("#tsparticles"),
backgroundMode: {
enable: true,
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: {
enable: true,
speed: 1,
direction: "none",
random: true,
outMode: "out"
},
size: {
value: 5,
random: true
},
opacity: {
value: 0.5,
random: true,
anim: {
enable: true,
speed: 1,
opacity_min: 0.1,
sync: false
}
}
},
interactivity: {
detectsOn: "canvas",
areas: [
{
type: "circle",
x: window.innerWidth / 2,
y: window.innerHeight / 2,
radius: window.innerWidth / 2,
key: "parallax"
}
],
onInteractModeChange: function() {
if (this.interactMode === "none") {
document.body.style.cursor = "auto";
} else {
document.body.style.cursor = "grab";
}
}
},
parallax: {
enable: true,
properties: {
x: {
enable: true,
min: -10,
max: 10
},
y: {
enable: true,
min: -10,
max: 10
}
}
},
style: {}
});
particles.add(true);
window.addEventListener("resize", () => {
particles.resize();
});
</script>
</body>
</html>
Copied!
Copied!