Plug Socket Switch

Motion Components · Vol. 1

Component

Plug Socket Switch

A real 3D plug dangles on its cable. Flip the switch and it swings in, slams into the wall socket, throws a shower of sparks and a flash, and the lamp across the room flickers to life.

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