1.2.2 • Published 17 days ago

nebula-dust-particles v1.2.2

Weekly downloads
-
License
ISC
Repository
github
Last release
17 days ago

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
1.2.2

17 days ago

1.2.0

1 month ago

1.2.1

1 month ago

1.0.0

2 months ago