Peel

You found it
Code: MOVIN-25
Peel me
Drag the corner
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/card-peel

About this component

A sticker on a card. Hovering curls its corner; drag the corner and it peels back along a true fold line (the perpendicular bisector of corner and pointer), the sticker clipped on one side and its paper underside mirrored on the other, revealing what is beneath. Pull far enough and it comes off; click the corner to stick it back.

Triggers

  • Hover
  • Click
  • Card
  • Mouse tracking

Techniques

  • clip-path
  • Event position
  • CSS variables
  • requestAnimationFrame
  • State machine

Difficulty

Advanced

Accessibility

Keyboard and screen readers

The corner is a real button with aria-pressed: Enter or Space peels the sticker off and sticks it back.

Reduced motion

The peel jumps without easing.

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

More cards

See all
Order #2481
42.00
Espresso x27.00
Croissant4.50
Sketchbook30.50
Total42.00
ReceiptGet code
You wonA free month
Scratch-offGet code
01Swiss gridDrag me sideways
02BauhausForm follows function
03BrutalismRaw and honest
04MemphisLoud on purpose
Swipe DeckGet code
01PlanSketch the flow
02BuildMake it move
03ShipWatch it land
Field GuideHover to open
Tri-foldGet code