Light Switch Toggle

Motion Components · Vol. 1

Component

Light Switch Toggle

Flip the rocker: the fluorescent tube stutters awake and the whole 3D room floods with light. Flip it off and the light drains, leaving dust in the last glow.

Variants

Sizes and states, all built from the same markup.

Small
Default
Disabled

Usage

Paste the markup, include assets/css/tokens.css and assets/css/tailwind.css, then run the script from this page.

Accessibility