nebula-dust-particles
v1.2.2
Published
Create mesmerizing particle effects resembling space nebulae.
Downloads
9
Maintainers
Readme
nebula-dust-particles
nebula-dust-particles
is a JavaScript library for creating and animating dust particles using THREE.js and GSAP, designed to be easily integrated into web projects to add a captivating visual effect. Perfect for adding a touch of cosmic or magical ambiance to your web applications.
Installation
Install nebula-dust-particles
via npm:
npm install nebula-dust-particles
Or via yarn:
yarn add nebula-dust-particles
Usage
First, ensure you have THREE.js and GSAP installed in your project, as nebula-dust-particles
depends on these libraries.
npm install three gsap
Then, import and use nebula-dust-particles
in your JavaScript or TypeScript project:
import NebulaDustParticles from 'nebula-dust-particles';
// Assuming you have a div with id='particle-container' in your HTML
const particles = new NebulaDustParticles('particle-container');
API Reference
NebulaDustParticles(containerId)
Constructor creates and initializes the particles within the specified container.
- containerId:
string
- The ID of the