0.0.9 • Published 5 years ago
animatecss-helpers v0.0.9
animatecss-helpers
javascript helper functions to apply animate.css classes
Install
yarn add animatecss-helpers animate.css
Usage
import 'animate.css';
import { fade_in } from 'animatecss-helpers';
function animate_something(nodes) {
fade_in({ nodes });
}Parameters
| name | type | default | description |
|---|---|---|---|
| nodes | Array | [] | an array of nodes you want to applly animations to |
| delay | number | 0 | time to wait before the animation starts in seconds |
| duration | number | 1 | time of animation in seconds |
| stagger | number | 0 | when applying style on multiple nodes: time to wait to apply animation in beetween nodes |