Enamel pin

5 of 8 · hard enamel, gold plate

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/input-enamel-pin

About this component

A word cast as a hard-enamel pin: each letter is struck in raised metal lines, the enamel pours in to fill it and the gloss sweeps over, while the pin tilts with your pointer on its backing card.

Dependencies
None
Difficulty
Advanced
Reduced motion
Respected
Theme
Light and dark
Follows page color-scheme

Triggers3

  • State change
  • Mouse tracking
  • 3D

Techniques4

  • Mouse tracking
  • CSS variables
  • clip-path
  • Pseudo elements

Accessibility

Keyboard and screen readers

One native input named "Word on the pin"; the pin is aria-hidden and the count, or the reason for a refusal, is announced.

Reduced motion

The enamel is shown filled and the pin does not tilt.

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

More inputs

See all

5 of 10 · Enter varnishes it

MarquetryGet code
KnittedGet code

5 of 10 · Enter pulls the squeegee

SilkscreenGet code

5 of 18 · no undo: Backspace shakes it clean

Sketch toyGet code