boilerplate.js
Version:
Development Tools
18 lines (12 loc) • 449 B
JavaScript
/*
Docs: https://daneden.github.io/animate.css/
*/
components('animate.css', (element, animation, cb) => {
Defer.css('https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.2/animate.min.css', () => {
components.animations.end(element, element => {
cb && cb();
element.classList.remove('animated', animation);
});
element.classList.add('animated', animation);
});
});