πŸ’« TransitionEnd is an agnostic and cross-browser library to work with transitionend event.
JavaScript HTML CSS Makefile
Switch branches/tags
Nothing to show
Latest commit 00e56e3 Jul 19, 2016 @EvandroLG committed on GitHub Merge pull request #9 from wytrych/use-standard-transition
Use standard transitionend if available

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"