Get started with tsparticles-plugin-easing-cubic CDN
MIT licensed
TS Particles plugin: tsparticles-plugin-easing-cubic adds cubic easing to particle properties.
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-cubic CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with tsparticles-plugin-easing-cubic CDN - cdnhub.io</title>
<script src="https://cdn.jsdelivr.net/npm/workbox-cdn@5.1.3/workbox-sw.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@tsparticles/core@5.1.2/base/tsParticles.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@tsparticles/plugins/tsParticles-plugins-easing@2.12.0/index.min.js"></script>
<script src="https://cdn.cdnhub.io/tsparticles-plugin-easing-cubic/2.12.0/tsparticles.plugin.easing.cubic.min.js"></script>
<style>
#tsparticles {
height: 100vh;
width: 100vw;
}
</style>
</head>
<body>
<div id="tsparticles"></div>
<script>
const particlesInit = async (main) => {
await main.load();
main.add particles.circle({
position: { x: 50, y: 50 },
size: 10,
opacity: 0.5,
color: '#ff7f50',
easing: 'easeOutCubic'
});
main.add particles.circle({
position: { x: 100, y: 100 },
size: 15,
opacity: 0.5,
color: '#ff7f50',
easing: 'easeInCubic'
});
};
document.addEventListener('DOMContentLoaded', async () => {
const particlesContainer = document.querySelector('#tsparticles');
await particlesInit(tsparticles.load(particlesContainer));
});
</script>
</body>
</html>
Copied!
Copied!