Get started with tsparticles-updater-out-modes CDN
MIT licensed
Libraries TSParticles-updater-out: customize Three.js particle property output modes.
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-updater-out-modes CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with tsparticles-updater-out-modes CDN - cdnhub.io</title>
<style>
#tsparticles {
height: 100vh;
width: 100%;
}
</style>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/worksans.min.css"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/tsparticles.min.js"></script>
<script src="https://cdn.cdnhub.io/tsparticles-updater-out-modes/2.12.0/tsparticles.updater.out-modes.min.js"></script>
</head>
<body>
<div id="tsparticles"></div>
<script>
const particlesInit = async () => {
const particles = new TSParticles.DefaultLocator({
selector: "#tsparticles",
style: {
backgroundColor: "#000",
particles: {
color: "#fff",
links: {
color: "#fff",
width: 1
}
}
},
animations: {
defaultAnimation: {
enable: true,
speed: 1,
size: 1
}
},
interactivity: {
detectsOn: "canvas",
events: {
onHover: {
enable: true,
mode: "repulse"
},
onClick: {
enable: true,
mode: "push"
},
resize: true
}
},
updaters: {
outModes: {
enable: true,
mode: "out", // or "out-circle" or "out-rect"
speed: 1,
outsideColor: "#000",
minSize: 0.1
}
}
});
await particles.load();
};
particlesInit();
</script>
</body>
</html>
Copied!
Copied!