A small library providing easy-to-use animations for web projects, leveraging GSAP, anime.js, AOS, and more to offer a variety of animations with simple API calls.
To install micro-animation-library, run the following command in your project directory:
npm install micro-animation-library
First, import the library into your project:
import { animations } from 'micro-animation-library';
Then, you can easily add animations to your elements. Here are some examples:
animations.fadeIn('.my-element', 1); // fades in the element over 1 second
animations.slideInLeft('.my-element', 1); // slides in from the left over 1 second
animations.zoomIn('.my-element', 800); // zooms in the element over 800 milliseconds
animations.rotate('.my-element', 1000); // rotates the element over 1000 milliseconds
animations.onScrollFadeIn('.my-element'); // fades in the element on scroll
animations.draggable('.my-element'); // makes the element draggable
Contributions are welcome! If you have an idea for an improvement or find a bug, please open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
This library leverages the power of the following dependencies:
- GSAP
- anime.js
- AOS
- ScrollMagic
- Popmotion
Thank you to the creators and contributors of these libraries for their fantastic work.