💫 TransitionEnd is an agnostic and cross-browser library to work with transitionend event.
Switch branches/tags
Nothing to show
Clone or download
EvandroLG Merge pull request #9 from wytrych/use-standard-transition
Use standard transitionend if available
Latest commit 00e56e3 Jul 19, 2016

README.md

TransitionEnd

Build Status

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

Browser Support

Chrome Firefox IE Opera Safari
1.0+ ✔ 4.0+ ✔ 10+ ✔ 10.5 ✔ 3.2+ ✔

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()

Examples

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"