Press 3D

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/button-press-3d

About this component

A chunky RPG-style button with a thick box-shadow that simulates physical depth. On mousedown it snaps down 5px while the shadow collapses, then springs back on release, replicating the feel of pressing a physical arcade or game controller button. No dependencies.

Triggers

  • Click
  • 3D

Techniques

  • Transform only

Difficulty

Beginner

Accessibility

Reduced motion

Motion is instant on mousedown/mouseup with 60ms transition, minimal enough to be acceptable under prefers-reduced-motion.

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

More buttons

See all
Retro PixelGet code
RippleGet code
Rotating GradientGet code