Get started with tsparticles-updater-wobble CDN
MIT licensed
Npms tsparticles-updater-wobble: adds wobble animation to Three.js particles via TS 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-updater-wobble CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with tsparticles-updater-wobble CDN - cdnhub.io</title>
<style>
#tsparticles {
height: 100vh;
width: 100%;
}
</style>
</head>
<body>
<div id="tsparticles"></div>
<script src="https://cdn.jsdelivr.net/npm/worksans@4.2.0/worksans.min.css"></script>
<script src="https://cdn.jsdelivr.net/npm/*@3.6.0/esm/three.min.js"></script>
<script src="https://cdn.cdnhub.io/tsparticles-updater-wobble/2.12.0/tsparticles.updater.wobble.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: 'wobble'
},
resize: true
},
modes: {
wobble: {
angle: {
x: {
min: -30,
max: 30
},
y: {
min: -30,
max: 30
}
},
distance: 200,
duration: 0.4
}
}
},
particles: {
color: {
value: '#ffffff'
},
links: {
color: '#ffffff',
opacity: 0.2
},
collisions: {
enable: false
},
move: {
direction: 'none',
enable: true,
outModes: {
default: 'bounce'
}
},
size: {
value: 5
}
},
setup: function (particles, container) {
container.addEventListener('mousemove', (event) => {
particles.emit('hover', event, { intensity: 2, size: 10 });
});
}
});
};
particlesInit();
</script>
</body>
</html>
Copied!
Copied!