Skip to content

Instantly share code, notes, and snippets.

@Jagathishrex
Created December 8, 2019 04:13
Show Gist options
  • Save Jagathishrex/b7d101eeefbd2da13ffb7596f860eb46 to your computer and use it in GitHub Desktop.
Save Jagathishrex/b7d101eeefbd2da13ffb7596f860eb46 to your computer and use it in GitHub Desktop.
let square = document.getElementById('square');
square.addEventListener('animationstart', (ev) => {
console.log("Animation Startted", ev);
});
square.addEventListener('animationiteration', (ev) => {
console.log("animation_iteration", ev);
});
square.addEventListener('animationend', (ev) => {
console.log("animation end", ev);
});
square.addEventListener('animationcancel', (ev) => {
console.log("Animation canceled" , ev);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment