Blinds

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/toggle-blinds

About this component

A window with venetian blinds. Switching on tilts the slats open one after another from the top, letting daylight through in stripes that also fall across the sill below; off tilts them shut again. Pure CSS on a native switch.

Triggers

  • Click
  • State change
  • Delay stagger

Techniques

  • 3D transform
  • Perspective
  • Transition delay stagger

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

Native checkbox with role="switch" inside a <label>. The visible label text names it. Focus ring on the visual via :focus-visible.

Reduced motion

The change is instant.

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

More toggles

See all
CandleGet code
Caps LockGet code
Pull CordGet code
EyeGet code