javascript helper functions to apply animate.css classes
yarn add animatecss-helpers animate.css
import 'animate.css';
import { fade_in } from 'animatecss-helpers';
function animate_something(nodes) {
fade_in({ nodes });
}
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 |