JSPM

transitionEnd

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 499
  • Score
    100M100P100Q115721F

Package Exports

  • transitionEnd

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (transitionEnd) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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+ ✔ |

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"