Toggle Sidebar B
AppearanceLight & dark mode D

Bounce Cards

Cards bounce in on mount, and optionally push their neighbours aside on hover.

Default

Every prop is wired to the controls underneath. Turn on Enable Hover Effect to flatten the hovered card and push the others away.

Dark previewReplay previewOpen in new tab
card-0
card-1
card-2
card-3
card-4

Customize

Animation Delay1s
Animation Stagger0.08s

API Reference

BounceCards

PropTypeDefaultDescription
imagesstring[][]Array of image URLs to display.
containerWidthnumber400Width of the container (px).
containerHeightnumber400Height of the container (px).
animationDelaynumber0.5Delay (in seconds) before the animation starts.
animationStaggernumber0.06Time (in seconds) between each card's animation.
easeTypestring'elastic.out(1, 0.8)'Easing function for the bounce.
transformStylesstring[]various rotations/translationsCustom transforms for each card position.
enableHoverbooleanfalseIf true, hovering pushes siblings aside and flattens the hovered card's rotation.

Accessibility

Keyboard shortcuts and ARIA behavior.

  • Hover only. Each image gets the alt text card-N, so pass meaningful images and keep any real content outside the stack.