get-translation
Version:
Effective translation workflow
21 lines (16 loc) • 571 B
Markdown
TransitionEnd is a agnostic lib cross-browser to work with event transitionend.
* transitionEnd(element).<code>bind(callback)</code>
* transitionEnd(element).<code>unbind()</code>
* transitionEnd(element).<code>whichTransitionEnd()</code>
**Examples**
```js
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"
```