Zones

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/card-zones

About this component

A meeting finder on a dot-matrix world lit by the real sun: day land glows gold to cream, night land sinks to deep blue with its city lights on. Drag the slim ruler through your own day and the terminator sweeps the map, three city times roll beneath it, pins turn lime at work, and a lime band marks the hours all three share.

Triggers

  • State change
  • Continuous
  • Glow
  • Ambient
  • Card

Techniques

  • SVG
  • SVG filter
  • requestAnimationFrame
  • Event position
  • CSS transition
  • Keyframe animation
  • Radial gradient
  • Gradient
  • Pseudo elements
  • CSS variables

Difficulty

Advanced

Accessibility

Keyboard and screen readers

The ruler is a focusable role slider (Meeting time, your hours) with aria-valuetext reading the moment in full, for example '14:00 your time, São Paulo 05:30, London 08:30, Nairobi 11:30'; arrows, Page Up and Down, Home and End all work, and focus draws a ring round the thumb. The map, pins and city row are aria-hidden, since the slider carries every time. The resting frame renders on the server at a fixed moment, then switches to your zone and the real time on mount without moving anything.

Reduced motion

Reduced motion stops the city light shimmer and moves the map, thumb and band without transitions.

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

More cards

See all

Design review

Live
  • Mina, speaking
  • Omar
  • Leo
  • Ama
  • Noor
8
HuddleGet code

Mira Holt

Art director

TeamGet code

Field recordings

412files

AlbumGet code
34 editing
CursorsGet code