Browser prefix helper for animation event
$ npm install --save pfx-animation
const animation = require('pfx-animation');
const obj = document.querySelector('.move-obj');
obj.addEventListener(animation.end, () => {
// the animation has finished
}, false);
Object containing three properties, start
, iteration
, and end
, that map to animationstart, animationiteration, and animationend, respectively, and include the correct vendor animation prefix (if needed).
MIT © Alex Cross