GODRICH
#css-animation#button#loader#transition#scroll#dashboard#ui#design-trends

01Basic slide toggle

Checking the checkbox slides the round knob to the right via translateX while the track's background color switches with it.

Best forSettings toggle rows, checkbox replacements in forms

translateX:checked0.25초
Basic slide toggle
Open in a new tab

01 Basic slide toggle — Measured area 0.917% · moving frames 15/23Original by GODRICH · SCSS and React ship in the zip · 9 CSS Toggle Switches — One Line, Copy-Paste

The post this demo lives in

9 CSS Toggle Switches — One Line, Copy-Paste - preview of all 9 demos9 CSS Toggle Switches — One Line, Copy-PasteA css toggle switch is a real <input type="checkbox"> styled as a track and knob, so :checked decides which side the kno See all demos in this post

If you like this effect - similar demos