BounceAnimation

Components/Animations

Interactive docs page: https://wix-pages.com/design-system-documentation/#/component/bounceanimation

Overview

Copy

<BounceAnimation/> is a wrapper with a predefined bounce animation. It emphasizes UI elements with a bounce motion.

Do

  • Use it to emphasize an element that needs the user's attention.
  • Play it once, and loop it only until users act on the element.

Don't

  • Don't animate several elements on the same screen at once.
  • Don't use it only for decoration.

Feature examples

"onEnd" example

The callback is executed when the transition ends. This allows triggering actions after component finished playing its animation.

Copy

Loop example

When `loop` prop is true, the child component bounces repetitively until stopped by other event.

Copy

Delay example

The `delay` prop is used to set a delay before the animation execution.

Copy

Size example

The scale of the animation is set manually, according to the size of the object:

Copy

Code

Copy

Props

NameTypeDefaultDescription
activeboolean—Triggers the animation transition.
children (required)ReactNode—The component which we would like to animate.
dataHookstring—Applied as data-hook HTML attribute that can be used in the tests.
delaystring | 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.
loopboolean—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.

Testkit

Import the driver matching your test environment:

Copy

Driver methods

MethodDescription
existsChecks whether the component found with the given data hook.
elementGets the component root element.
clickClicks on the component root element.
baseReturns UniDriver for the base element.

Changelog

  • 1.339.0 (2026-10-19) — maintenance release, no component-specific changes
  • 1.338.0 (2026-10-15) — maintenance release, no component-specific changes
  • 1.331.0 (2026-10-01) — maintenance release, no component-specific changes
  • 1.325.0 (2026-09-17) — maintenance release, no component-specific changes
  • 1.322.0 (2026-09-09) — maintenance release, no component-specific changes
  • 1.310.0 (2026-08-10) — maintenance release, no component-specific changes
  • 1.292.0 (2026-06-22) — maintenance release, no component-specific changes
  • 1.267.0 (2026-04-09) — maintenance release, no component-specific changes
  • 1.266.0 (2026-04-07) — maintenance release, no component-specific changes
  • 1.263.0 (2026-03-31) — maintenance release, no component-specific changes
  • 1.260.1 (2026-03-23) — maintenance release, no component-specific changes
  • 1.260.0 (2026-03-17) — maintenance release, no component-specific changes
  • 1.102.0 (2024-04-16) — maintenance release, no component-specific changes
  • 1.93.0 (2024-02-08) — maintenance release, no component-specific changes
  • 1.92.1 (2024-02-05) — maintenance release, no component-specific changes

Last updated: 21 October 2026

Did this help?