Skip to content
animation-utils / 5.0.2

animation-utils 5.0.2

Install from the command line:
Learn more about npm packages
$ npm install @zestia/animation-utils@5.0.2
Install via package.json:
"@zestia/animation-utils": "5.0.2"

About this version

@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 start and finish, including descendants
await waitForAnimation(element, { subtree: true });

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

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

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

Details


Assets

  • animation-utils-5.0.2.tgz

Download activity

  • Total downloads 0
  • Last 30 days 0
  • Last week 0
  • Today 0

Recent versions

View all