@taikonauten/transitionend
TypeScript icon, indicating that this package has built-in type declarations

3.0.7 • Public • Published

Taikonauten transitionend helper

transitionend helper

Fires the given callback when all given nodes received a transitionend event with the given property name.

Usage

npm install --save @taikonauten/transitionend
import transitionEnd from 'transitionend';
// class selector, propertyName
await transitionEnd('.transition', 'transform');
console.log('transition(s) ended.');
// Node, propertyName
const element = document.getElementById('test');

await transitionEnd(element, 'transform')
console.log('transition(s) ended.');
// NodeList, propertyName
const elements = document.querySelectorAll('a');

await transitionEnd(elements, 'transform')
console.log('transition(s) ended.');

Readme

Keywords

none

Package Sidebar

Install

npm i @taikonauten/transitionend

Weekly Downloads

1

Version

3.0.7

License

MIT

Unpacked Size

4.23 kB

Total Files

5

Last publish

Collaborators

  • sf-taiko
  • taiko-org
  • nicolaisteinel
  • schllng
  • lempa
  • tststststststs