Installation
npm i animateme
or
yarn add animateme
Usage
In your HTML create the elements that you want to be animated.
The default class name used
for the animations is "animate-me".
Then
import AnimateMe from 'animateme';
Usage
then create a new instance with the default settings
new AnimateMe();
Usage
or use your own options
new AnimateMe('.your-element', {
offset: 0.8,
reverse: false,
animatedIn: 'your-custom-class',
offsetAttr: 'data-offset-top',
animationAttr: 'data-animation-name',
touchDisabled: false
});
Further reading
for more details on usage, API and more,
please visit the
Github page.