Receipt

Order #2481
42.00
Espresso x27.00
Croissant4.50
Sketchbook30.50
Total42.00
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/card-receipt

About this component

A payment terminal card. On hover its light blinks and a receipt prints out of the slot in steps() jerks like a thermal printer, line items, total and barcode, with a torn zigzag edge from a conic-gradient mask; leaving pulls it back in smoothly. Pure CSS.

Triggers

  • Hover
  • Focus
  • Card
  • Keyframe

Techniques

  • CSS transition
  • Keyframes
  • Gradient
  • Transform only

Difficulty

Beginner

Moves on

Its code uses this curve. Open one to see it plotted and tune it.

Accessibility

Keyboard and screen readers

Focusable; keyboard focus prints the receipt like hover.

Reduced motion

The receipt appears without feeding and the light does not blink.

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

More cards

See all
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
Aurora
Floating light blobs
AuroraGet code