solar-flare-animations
v2.0.3
Published
A collection of solar and space-themed CSS animations for web elements.
Downloads
3
Maintainers
Readme
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.