Get started with tsparticles-updater-orbit CDN
MIT licensed
Tsparticles-updater-orbit is a npm package for updating Orbit component in TS Particles 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-orbit CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with tsparticles-updater-orbit CDN - cdnhub.io</title>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/worksans.min.css"></script>
<link rel="stylesheet" href="styles.css" />
<script src="https://cdn.jsdelivr.net/npm/[email protected]/particles.min.js"></script>
<script src="https://cdn.cdnhub.io/tsparticles-updater-orbit/2.12.0/tsparticles.updater.orbit.min.js"></script>
<script src="script.js"></script>
</head>
<body>
<div id="particles-container"></div>
</body>
</html>
/* styles.css */
body {
margin: 0;
padding: 0;
overflow: hidden;
font-family: 'Work Sans', sans-serif;
}
#particles-container {
width: 100%;
height: 100vh;
}
/* script.js */
particlesJS.load('particles-container', 'particles.json', function() {
TSParticles.init('particles-container', {
fpsLimit: 60,
interactivity: {
events: {
onHover: {
enable: true,
mode: 'repulse'
},
onClick: {
enable: true,
mode: 'push'
},
resize: true
},
modes: {
grab: {
distance: 400,
lineLinked: {
opacity: 0.5
}
},
bubble: {
distance: 400,
size: 40,
duration: 2,
opacity: 0.8,
speed: 3
},
repulse: {
distance: 200,
duration: 0.4
},
push: {
distance: 400,
duration: 0.4
},
remove: {
quantity: 1
}
}
},
particles: {
color: '#ffffff',
links: {
color: '#ffffff',
distance: 150,
opacity: 0.4,
width: 1
},
interactivity: {
detectsOn: 'canvas',
responsiveness: true
},
move: {
direction: 'none',
enable: true,
outMode: 'out'
},
size: {
random: true,
min: 0.1,
max: 0.5
}
},
updaters: {
orbit: {
enable: true,
startAngle: Math.PI * 0.5,
orbitRadius: 500,
direction: 1,
speed: 0.05,
random: false,
texture: 'images/texture.png'
}
},
animations: {
enable: true,
fadeIn: {
duration: 1500,
opacity: 1
}
}
});
TSParticles.UpdaterOrbit.init('particles-container');
});
Copied!
Copied!