BulkAnimate is a plugin inspirated by animateLoading under WTFPL
ES6, Jquery 1 || 2 || 3
Animate.css
In your main js file import this file
import BulkAnimate from './{YOUR-PATH}/bulkAnimate';
Then init this plugin in your document.ready (or ready function for turbolinks users)
let bulkAnimate = new BulkAnimate();
bulkAnimate.init([
[ ".element-selector", "animation-class", optional-delay ],
[ ".element-selector", "animation-class", optional-delay ],
[ ".element-selector", "animation-class" ],
]);
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
- You just DO WHAT THE FUCK YOU WANT TO.