Get started with tsparticles-plugin-absorbers CDN
MIT licensed
TSParticles-absorbers: library extension with attracting 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-plugin-absorbers CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with tsparticles-plugin-absorbers CDN - cdnhub.io</title>
<style>
#tsparticles {
height: 100vh;
width: 100%;
}
</style>
</head>
<body>
<div id="tsparticles"></div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/worksans.min.css"></script>
<script src="https://cdn.skypack.dev/[email protected]/build/three.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@tweenjs/[email protected]/umd/TWEEN.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@tsparticles/[email protected]/dist/tsparticles.min.js"></script>
<script src="https://cdn.cdnhub.io/tsparticles-plugin-absorbers/2.12.0/tsparticles.plugin.absorbers.min.js"></script>
<script>
const particlesInit = async () => {
const particlesContainer = document.querySelector('#tsparticles');
await tsparticles.loadLite(particlesContainer, {
background: {
color: '#000'
},
fpsLimit: 60,
interactivity: {
events: {
onClick: {
enable: true,
mode: 'repulse'
},
onHover: {
enable: true,
mode: 'repulse'
},
resize: true
},
modes: {
grab: {
distance: 400,
lineLinked: {
opacity: 0.4,
width: 1
}
},
repulse: {
distance: 200,
duration: 0.4
}
}
},
particles: {
color: {
value: '#ffffff'
},
links: {
color: '#ffffff',
distance: 150
},
collisions: {
enable: true
},
move: {
direction: 'none',
enable: true,
outModes: {
default: 'bounce'
}
},
size: {
value: 5
}
},
plugins: [
'tsparticles-plugin-absorbers'
],
absorbers: {
enable: true,
absorberColor: '#000',
size: 50,
opacity: 0.5,
shape: 'circle',
move: {
direction: 'none',
enable: true,
outModes: {
default: 'bounce'
}
},
intersections: {
enable: true,
mode: 'repulse'
}
}
});
};
particlesInit();
</script>
</body>
</html>
Copied!
Copied!