Tile Flip

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/button-tile-flip

About this component

The surface is a 12x4 grid of tiles. Entering flips them over in a wave that spreads from the exact point the cursor came in, each tile turning about the axis facing away from it; leaving flips them back from where it left. The label turns dark as the wave passes.

Triggers

  • Hover
  • 3D
  • Delay stagger

Techniques

  • 3D transform
  • Perspective
  • Transition delay stagger
  • Event position
  • Pseudo elements

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

Tiles are aria-hidden. Keyboard focus flips the grid from its centre.

Reduced motion

The tiles and label switch without transitions.

Use it in anything you build, commercial and client work included. Licence

More buttons

See all
Border BeamGet code
Burst RingGet code
ConfettiGet code