1.0.8 • Published 7 years ago
animo-core v1.0.8
animo-core
animo animation core.
Install
❯ yarn add animo-core
Usage
import animo from 'animo-core';
const flashAnimation = (el) => {
return new animo(el, {
isAnimation: true,
onComplete: function(element) {
el.classList.remove('animated', 'flash')
},
onIteration: function(element) {
el.classList.add('animated','flash')
}
})
}
Options
{
iterate: 1,
isAnimation: false,
onComplete: () => {},
onIteration: () => {},
onMount: () => {}
}