Components/Animations
Interactive docs page: https://wix-pages.com/design-system-documentation/#/component/bounceanimation
<BounceAnimation/> is a wrapper with a predefined bounce animation. It emphasizes UI elements with a bounce motion.
The callback is executed when the transition ends. This allows triggering actions after component finished playing its animation.
When `loop` prop is true, the child component bounces repetitively until stopped by other event.
The `delay` prop is used to set a delay before the animation execution.
The scale of the animation is set manually, according to the size of the object:
| Name | Type | Default | Description |
|---|---|---|---|
active | boolean | — | Triggers the animation transition. |
children (required) | ReactNode | — | The component which we would like to animate. |
dataHook | string | — | Applied as data-hook HTML attribute that can be used in the tests. |
delay | string | number | — | Sets a delay before the animation starts. A number is treated as milliseconds, and a string is used as a CSS animation-delay value. |
loop | boolean | — | Specifies whether the animation repeats continuously while active is true. |
onEnd | (event: AnimationEvent<HTMLDivElement>) => void | — | A callback fired immediately after the animation ends. |
onStart | (event: AnimationEvent<HTMLDivElement>) => void | — | A callback fired immediately after the animation starts. |
Import the driver matching your test environment:
| Method | Description |
|---|---|
exists | Checks whether the component found with the given data hook. |
element | Gets the component root element. |
click | Clicks on the component root element. |
base | Returns UniDriver for the base element. |
Last updated: 21 October 2026