animationend

0.0.1 • Public • Published

animationend

Build Status

Sauce Test Status

Detect when CSS transitions/animations have ended. Cross-browser tested.

The function returns ES6 Promise.

var animationEnd = require('animationend')
 
animate(element)
 
animationEnd(element).then(function(event) {
  // called on transitionend or animationend
})
 
animationEnd(element, function(event) {
  // also you can use a normal callback
})

Installation

npm install --save animationend

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i animationend

Weekly Downloads

10

Version

0.0.1

License

MIT

Last publish

Collaborators

  • uiureo