This package has been deprecated

Author message:

Moved to GitHub Packages

@zestia/animation-utils

5.0.1 • Public • Published

@zestia/animation-utils

Utils for working with animations and transitions.

waitForAnimation

// Wait for animations to start and finish
await waitForAnimation(element);

// Wait for animations to finish, if there are any
await waitForAnimation(element, { maybe: true });

// Wait for animations to finish, including descendants
await waitForAnimation(element, { subtree: true });

// Wait for an animation to finish by name
await waitForAnimation(element, { animationName: 'fade-out' });

// Wait for a transition to finish by name
await waitForAnimation(element, { transitionProperty: 'margin-left' });

// Wait for an animation to finish by name, including descendants
await waitForAnimation(element, { subtree: true, animationName: 'move' });

Readme

Keywords

none

Package Sidebar

Install

npm i @zestia/animation-utils

Weekly Downloads

2,478

Version

5.0.1

License

MIT

Unpacked Size

2.78 kB

Total Files

3

Last publish

Collaborators

  • philliphaines
  • amk221