nebula-dust-particles

1.2.2 • Public • Published

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

Package Sidebar

Install

npm i nebula-dust-particles

Weekly Downloads

2

Version

1.2.2

License

ISC

Unpacked Size

4.54 kB

Total Files

5

Last publish

Collaborators

  • furlowekaterina