TIP: Try navigating through list using left & right arrow keys
T

TransitionEnd

:dizzy: TransitionEnd is an agnostic and cross-browser library to work with transitionend event.

94
Github issues
0Github stars
about 1 month ago
Github last update date
1205
NPM current week downloads

TransitionEnd

TransitionEnd is an agnostic and cross-browser library to work with event transitionend.

Browser Support

ChromeFirefoxInternet ExplorerOpera
1.0+ b4.0+ b10+ b10.5 b3.2+ b

Installation

To install Selecting, execute:

  npm install transitionEnd

Or Bower too:

  bower install transitionEnd

Or simply pick up the file from src directory.

Methods

  • transitionEnd(element).bind(callback)
  • transitionEnd(element).unbind()
  • transitionEnd(element).whichTransitionEnd()

How does it work?

var box = $("#box"); // or document.getElementById("box")
var foo = $("#foo");

transitionEnd(box).bind(function(){
	foo.addClass("on");
	transitionEnd(box).unbind();
});

var transition = transitionEnd(box).whichTransitionEnd(); // return for example "webkitTransitionEnd"
Buy us a coffeeBuy us a coffee