5.0.1 • Published 1 year ago

@zestia/animation-utils v5.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@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' });
5.0.1

1 year ago

5.0.0

1 year ago

4.1.0

2 years ago

4.0.0

2 years ago

4.2.0

2 years ago

3.0.4

2 years ago

3.0.3

3 years ago

3.0.2

3 years ago

3.0.1

3 years ago

3.0.0

3 years ago

2.0.0

3 years ago

1.0.0

3 years ago