Popularity
1.3
Growing
Activity
2.8
-
95
5
8

Description

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

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

TransitionEnd alternatives and similar libraries

Based on the "Animations" category.
Alternatively, view TransitionEnd alternatives based on common mentions on social networks and blogs.

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"