rstacruz / jquery.transit

Super-smooth CSS3 transformations and transitions for jQuery
http://ricostacruz.com/jquery.transit
7.3k stars 864 forks source link

[Feature] Support for clearing the 'complete' cb #222

Open JohnErnstDev opened 9 years ago

JohnErnstDev commented 9 years ago

It would be nice to be able to clear the setTimeout / unbind the transitionEnd before it fires in some circumstances.

Use case would be on a single-page app with a long running animation where the user navigates to another page before the animation completes and the js scheduled to fire on the 'complete' callback is no longer present. The module should be able to ask jquery.transit to unbind the callback.

Nice plugin BTW!