masy-animation-library

0.1.2 • Public • Published

masy-animation-library

A complex animation library leveraging GSAP and lodash for advanced animations in a single file.

Installation

To install masy-animation-library, run:

npm install masy-animation-library

This will also install required dependencies: gsap and lodash.

Usage

To animate an element, import the animateElement function and pass the selector and animation parameters:

const { animateElement } = require('masy-animation-library');

animateElement('#myElement', { duration: 2, opacity: 1, x: 100 });

This example will animate the element with id myElement to opacity 1 and move it 100 pixels to the right over 2 seconds.

Readme

Keywords

Package Sidebar

Install

npm i masy-animation-library

Weekly Downloads

3

Version

0.1.2

License

ISC

Unpacked Size

2.93 kB

Total Files

5

Last publish

Collaborators

  • heliatossie