once-on-transition-end
A higher order function that provides a timeout to the
transitionEnd
event
Install
$ npm install --save once-on-transition-end
How to use
; const element = document; // the DOM elementconst callback = { } // the function to invoke when the transition is done or after the timeout, whatever happens firstconst timeout = 1000; // the timeout ;
License
MIT © Jonathan Svenheden