codezilla-nl / util-listenForEnd

A util to use transitionEnd and animationEnd in your projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

util-listenForEnd

usage

  • Include util in your project
  • Use listenForAnimationEnd / listenForTransitionEnd

Ex:

import { listenForAnimationEnd } from 'path/to/util';

...
var el = document.querySelectorAll('.element-with-animation');
listenForAnimationEnd(el, function() {
    // do stuff;
});

About

A util to use transitionEnd and animationEnd in your projects


Languages

Language:JavaScript 100.0%