jquery-transition-guarantee

Guarantee that you are notified when a transition ends when triggered via adding or removing a class with jQuery


License
MIT
Install
bower install jquery-transition-guarantee

Documentation

transition-guarantee

This MIT Licensed plugin will guarantee that you are notified when a transition ends when transitions are triggered via adding or removing a class with jQuery.

For all browsers the transitionend event doesn't always trigger, even when it's supported. This plugin will trigger trans:end when a transition has ended. Where transitions aren't supported the trans:end event will be triggered immediately.

Events

trans:start

When transition is starting (sends duration as second param)

trans:end

When transition has ended

trans:abort

When transition had to be aborted due to happening too quickly after another trans:end

Derek Petersen

Google+ | Twitter