transitionEnd
TransitionEnd is an agnostic and cross-browser library to work with event transitionend.
Last updated 4 years ago by evandrolg .
Repository · Bugs · Original npm · Tarball · package.json
$ npm install transitionEnd 
SYNC missed versions from official npm registry.

TransitionEnd

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

Browser Support

Chrome Firefox Internet Explorer Opera
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()

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"

Current Tags

  • 1.0.3                                ...           latest (4 years ago)

2 Versions

  • 1.0.3                                ...           4 years ago
  • 1.0.2                                ...           9 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (3)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE