Identicon

Ines Calder

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/card-identicon

About this component

A member card whose avatar is a generated mark: a quilt of rounded squares, quarter-circles, triangles and half-moons, mirrored both ways, in two tones of one hue. Shuffle springs in a new mark tile by tile, and Follow takes its colour.

Triggers

  • Click
  • State change
  • Card
  • Delay stagger
  • Spring
  • Icon swap

Techniques

  • SVG
  • Keyframes
  • Stagger
  • @property
  • CSS transition
  • State machine

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

The emblem is decorative (aria-hidden) and the card is named by the person's name. Shuffle is an icon button named "Shuffle avatar"; Follow is a native button with aria-pressed and a visible Following label. Both have a :focus-visible ring in the hue.

Reduced motion

The new mark replaces the old one at once and colours change without transitions.

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

More cards

See all
Operating account

19.9%

LedgerGet code

Workspace

No command matches

PaletteGet code

Low Sun

Ora Vale

PlayerGet code

Delete workspace

northwind
PurgeGet code