Popularity
1.0
Growing
Activity
0.0
Stable
93
4
7

Description

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

Code Quality Rank: L2
Monthly Downloads: 0
Programming language: JavaScript
Tags: Animations     Front-end     Manipulation     Js     Event     transitionEnd    
Latest version: v1.0.2

TransitionEnd alternatives and similar libraries

Based on the "Animations" category

Do you think we are missing an alternative of TransitionEnd or a related project?

Add another 'Animations' Library

README

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"