pfx-animation
v1.0.0
Published
Browser prefix helper for animation event
Downloads
3
Maintainers
Readme
pfx-animation
Browser prefix helper for animation event
Install
$ npm install --save pfx-animation
Usage
const animation = require('pfx-animation');
const obj = document.querySelector('.move-obj');
obj.addEventListener(animation.end, () => {
// the animation has finished
}, false);
API
animation
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).
License
MIT © Alex Cross