EvandroLG / Transitionend
💫 TransitionEnd is an agnostic and cross-browser library to work with transitionend event.
Stars: ✠94
Programming Languages
javascript
184084 projects - #8 most used programming language
TransitionEnd
TransitionEnd is an agnostic and cross-browser library to work with event transitionend.
Browser Support
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"
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].