Skip to content
This repository has been archived by the owner on May 5, 2020. It is now read-only.
/ animationend Public archive
forked from uiur/animationend

Detect when CSS animations have ended

Notifications You must be signed in to change notification settings

allboatsrise/animationend

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

animationend

npm version Build Status

Sauce Test Status

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

The function returns ES6 Promise.

var animationEnd = require('animationend')

var element = document.getElementById('id')
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

About

Detect when CSS animations have ended

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%