Toggle switch 3D line illustration

Toggle switch is an interactive 3D line illustration for docs headers, install guides and CLI help. Its message: “Turn it off and on again.”

Developer docsDevicesFree

Open in the libraryEmbed code

Toggle switch in 3D line art, with the lever picked out in orange

How it moves

Hero part
The lever.
Hover
The lever nudges about 6° toward on, on the spring.
Click
It snaps over to on, the lamp lights, then after about 1.2 s it eases back to off.
Intros
Stack: the parts drop into place, one after another.
Draw: the lines trace themselves on.
Action
Its hero hands “Restart” to your page: each time it opens, the figure posts an action named restart, and your page decides what happens.
Reduced motion
It shows its final state and does not move.

Where it fits

Docs headers, install guides and CLI help, where a tangible object makes a step memorable.

More for this moment: illustrations for developer docs.

Embed it

HTML
<iframe
  src="https://usekeyline.dev/restart-switch/index.html?embed=1&style=brand&brand=f5821f&theme=light&intro=stack&grid=1"
  title="Toggle switch" width="400" height="320" style="border:0"></iframe>

Brand style in Keyline orange, the stack intro and the floor grid; the theme follows this page. Change any of them in the library, and see the docs for sizes, actions and the poster fallback.

Styles

It comes in Line art, Brand and Dots, each in light and dark, in your brand colour.

It is free in every style.

Related figures

All illustrations for developer docsThe whole library