Get started with tsparticles-updater-rotate CDN
MIT licensed
Tsparticles-updater-rotate is a npm package for rotating the particles in the TSParticles library.
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-rotate CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with tsparticles-updater-rotate CDN - cdnhub.io</title>
<style>
#tsparticles {
height: 100vh;
width: 100%;
}
</style>
<script src="https://cdn.jsdelivr.net/npm/worksans@4.2.0/worksans.min.css"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.9.1/gsap.min.js"></script>
<script src="https://cdn.cdnhub.io/tsparticles-updater-rotate/2.12.0/tsparticles.updater.rotate.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tsparticles/r113/tsparticles.min.js"></script>
</head>
<body>
<div id="tsparticles"></div>
<script>
const particlesInit = async () => {
const particlesContainer = document.querySelector('#tsparticles');
await tsparticles.loadLite(particlesContainer, {
background: {
color: '#000',
links: {
enable: false
}
},
fpsLimit: 60,
interactivity: {
events: {
onClick: {
enable: false,
mode: 'repulse'
},
onHover: {
enable: false,
mode: 'repulse'
},
resize: true
},
modes: {
repulse: {
distance: 200,
duration: 0.4
}
}
},
particles: {
color: {
value: '#fff'
},
links: {
color: '#fff',
distance: 150
},
collisions: {
enable: false
},
rotate: {
x: {
enable: true,
minSpeed: 0,
maxSpeed: 5
},
y: {
enable: true,
minSpeed: 0,
maxSpeed: 5
}
},
move: {
direction: 'none',
enable: true,
outModes: {
default: 'bounce'
}
},
size: {
value: 5
}
},
updaters: {
rotate: {
property: 'rotation.z',
quantum: 0.01
}
}
});
};
particlesInit();
</script>
</body>
</html>
Copied!
Copied!