Browser prefix helper for transition event
$ npm install --save pfx-transition
const transition = require('pfx-transition');
const slides = document.querySelectorAll('.slide');
slides.forEach(slide => {
slide.addEventListener(transition.end, () => {
// the transition has finished
}, false);
});
Object containing two properties, start
and end
, that map to transitionstart and transitionend, respectively, and include the correct vendor transition prefix (if needed).
MIT © Alex Cross