2.0.3 • Published 15 days ago

solar-flare-animations v2.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
15 days ago

Solar Flare Animations

A lightweight JavaScript library for applying solar flare effects to elements on your webpage. Built on top of Popmotion for smooth animations and Animate.css for initial effects.

Installation

To install the library, run:

npm install solar-flare-animations

Make sure you have popmotion and animate.css installed in your project as well, as they are peer dependencies of this library:

npm install popmotion animate.css

Usage

First, import the library in your JavaScript file:

import solarFlareAnimations from 'solar-flare-animations';

Then, you can apply a solar flare animation to any element by calling applyFlare with the element's ID:

solarFlareAnimations.applyFlare('yourElementId');

Example

HTML:

<div id="yourElementId">This is your element</div>

JavaScript:

import solarFlareAnimations from 'solar-flare-animations';

solarFlareAnimations.applyFlare('yourElementId');

API

applyFlare(elementId)

Applies the solar flare animation to the element with the specified ID.

  • elementId: The ID of the DOM element to which the animation will be applied.

Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue.

License

This project is licensed under the MIT License - see the LICENSE file for details.

2.0.3

15 days ago

2.0.2

1 month ago

2.0.0

1 month ago

1.0.0

2 months ago