Get started with tsparticles-plugin-easing-expo CDN
MIT licensed
TS Particles plugin: Expo easing for dynamic animations.
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-plugin-easing-expo CDN
<!DOCTYPE html>
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/workbox-sw.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@tsparticles/[email protected]/base/tsparticles.js"></script>
<script src="https://cdn.cdnhub.io/tsparticles-plugin-easing-expo/2.12.0/tsparticles.plugin.easing.expo.min.js"></script>
<style>
#tsparticles {
width: 100%;
height: 100vh;
}
</style>
</head>
<body>
<div id="tsparticles"></div>
<script>
const particles = new TSParticles.DefaultLocals({
selector: '#tsparticles',
style: {
fpsLimit: 60,
particles: {
color: '#ffffff',
links: {
color: '#ffffff',
width: 1
},
move: {
direction: 'none',
enable: true,
outModes: {
default: 'bounce'
}
},
size: {
value: 5,
random: true
}
},
interactivity: {
events: {
onClick: {
enable: true,
mode: 'repulse'
}
},
modes: {
repulse: {
distance: 200,
duration: 0.4
}
}
},
easing: {
in: 'easeInOutQuad',
out: 'easeInOutQuad'
}
},
plugins: [
'tsparticles-plugin-easing-expo'
]
});
particles.add(true);
particles.interactivity.events.on('click', (event) => {
particles.emitParticlesRecursively(event.position, 100);
});
particles.interactivity.modes.repulse.attractMode = 0.2;
</script>
</body>
</html>
Copied!
Copied!