1.0.0 • Published 7 years ago

pfx-animation v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

pfx-animation Build Status

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