75+ Free CSS Toggle Switches (Code Included)
Enjoy these CSS toggle switch code examples. They are free to use and you can embed them into your website or application very easily. The code is provided for free by generous open source authors.
NEW
🔥 Auto-Apply to 100's of Jobs With AI 🔥
👉
Click to visit: ApplyFox.ai
1. An Actual Pure CSS Checkbox Slider
Lotta people use JS for the text changes but you don't need to.
Author: Mark (markmead)
Links: Source Code / Demo
Created on: May 2, 2019
Made with: Pug, SCSS, JS
CSS Pre-processor: SCSS
JS Pre-processor: None
HTML Pre-processor: Pug
Tags: purecss, purecss toggle, css-toggle, toggle element, toggle select
2. CSS Grid Toggle
A new take on the CSS toggle, using CSS grid animations. See code for explanations :)
Author: Liam (liamj)
Links: Source Code / Demo
Created on: January 25, 2019
Made with: HTML, SCSS
Tags: grid, toggle, checkbox, animation
3. CSS Egg Switch
Author: Aaron Iker (aaroniker)
Links: Source Code / Demo, Dribbble Shot
Created on: February 5, 2020
Made with: HTML, SCSS, JS
4. Animated CSS Toggle Switch
Author: Garet McKinley (garetmckinley)
Links: Source Code / Demo
Created on: August 2, 2019
Made with: HTML, SCSS
5. Pure CSS Fuel Gauge Toggle
Author: Ömercan Balandı (omercanbalandi)
Links: Source Code / Demo
Created on: February 2, 2020
Made with: HTML, Sass
Tags: pure, css, toggle, checkbox, html
6. Neumorphic Toggle
Author: halvves (halvves)
Links: Source Code / Demo
Created on: February 5, 2020
Made with: HTML, CSS
Tags: neumorphism, toggle, ui, soft ui, neumorphic
7. Neumorphism Toggle
Author: Aaron Iker (aaroniker)
Links: Source Code / Demo, Dribbble Shot
Created on: February 15, 2020
Made with: HTML, SCSS
8. Dumb Toggles
Author: Adam Kuhn (cobra_winfrey)
Links: Source Code / Demo
Created on: February 1, 2018
Made with: HTML, SCSS
Tags: toggle, css
9. CSS Plane Switch
Author: Aaron Iker (aaroniker)
Links: Source Code / Demo, Dribbble Shot
Created on: January 9, 2020
Made with: HTML, SCSS
Tags: plane, fly, sky, switch, toggle
10. Plus / Minus Toggle CSS
Author: Adam Kuhn (cobra_winfrey)
Created on: July 30, 2018
Made with: Haml, SCSS
CSS Pre-processor: SCSS
JS Pre-processor: None
HTML Pre-processor: Haml
11. Power Switch Animation - Only CSS
Simple Power switch animation
Author: Milan Raring (milanraring)
Links: Source Code / Demo, Dribbble Shot
Created on: January 11, 2020
Made with: HTML, SCSS
Tags: css, power switch, on, off, animation
12. CSS Heart Switch
Author: Aaron Iker (aaroniker)
Links: Source Code / Demo, Dribbble Shot
Created on: December 16, 2019
Made with: HTML, SCSS
Tags: heart, toggle, love, checkbox, input
13. Subscribe Toggle Button
A subscribe toggle button featuring "Smudge, The Confused Cat" From Famous "Woman Yelling At Cat" Meme.
Author: Himalaya Singh (himalayasingh)
Links: Source Code / Demo
Created on: November 24, 2019
Made with: HTML, CSS
Tags: subscribe, toggle-button, toggle-switch, switcher, button
14. Toggle Switch Checkbox In CSS
Author: CodeMeNatalie (CodeMeNatalie)
Links: Source Code / Demo, Dribbble Shot
Created on: December 12, 2019
Made with: HTML, SCSS, JS
Tags: cpc-checkbox-hack, codepenchallenge, toggle, switch, checkbox
15. Volume Toggle CSS Switch
Author: Aaron Iker (aaroniker)
Links: Source Code / Demo, Dribbble Shot
Created on: October 17, 2019
Made with: HTML, SCSS
Tags: switch, toggle, volume, control, svg
16. Pink And Purple CSS Toggle Switch
Author: CodeMeNatalie (CodeMeNatalie)
Links: Source Code / Demo
Created on: October 24, 2019
Made with: HTML, SCSS
Tags: cpc-smooth-sharp, codepenchallenge, toggle, square, circle
17. Simple CSS Switch / Toggle
Author: Aaron Iker (aaroniker)
Links: Source Code / Demo, Dribbble Shot
Created on: October 16, 2019
Made with: HTML, SCSS
Tags: switch, animation, toggle, checkbox, input
18. Simple CSS Switch / Toggle
From https://dribbble.com/shots/2326459-Adobe-Toggle-Switch
Author: Aaron Iker (aaroniker)
Links: Source Code / Demo, Dribbble.com
Created on: October 16, 2019
Made with: HTML, SCSS
Tags: switch, toggle, input, checkbox, minimal
19. Checkbox CSS Toggle - Day / Night Mode
Checkbox CSS Toggle - Day / Night Mode
Author: Ahmad Emran (ahmadbassamemran)
Links: Source Code / Demo
Created on: August 28, 2019
Made with: HTML, CSS
Tags: checkbox, html, css, javascript, day/night
20. Antsy Toggles
Toggles that have a bit of anxiety...
Author: Daryn St. Pierre (bloqhead)
Links: Source Code / Demo
Created on: September 19, 2019
Made with: HTML, SCSS
Tags: css, scss, sass, animation
21. Checkbox Animation With Pure Css
Author: Erdem Uslu (erdemuslu)
Links: Source Code / Demo
Created on: June 8, 2019
Made with: Pug, SCSS
CSS Pre-processor: SCSS
JS Pre-processor: Babel
HTML Pre-processor: Pug
22. Toy Toggle Switch
What a toggle switch may look like if on a Little Tikes product, considering the plastic look. The handle is to resemble a dual colored ball. Based on this Dribbble shot. Update 8/28/19: Changed divs to spans
Author: Jon Kantner (jkantner)
Links: Source Code / Demo
Created on: July 2, 2019
Made with: HTML, CSS
Tags: skeuomorphic, switch, toggle, toy
23. A Confusing Toggle Button
A Confusing Toggle Button / Toggle Switch Using HTML And CSS
Author: Himalaya Singh (himalayasingh)
Links: Source Code / Demo
Created on: May 25, 2019
Made with: HTML, CSS
Tags: toggle, on, off, switch, button
24. CSS Day And Night Toggle
Author: Ana Tudor (thebabydino)
Links: Source Code / Demo, Youtube Video
Created on: June 4, 2019
Made with: HTML, SCSS
Tags: css-variables, transform, clip-path, sass
25. Toggle Radial Effect
Author: Florin Pop (FlorinPop17)
Links: Source Code / Demo
Created on: March 20, 2019
Made with: HTML, CSS
26. ✅ Springy Switchbox | Checkbox Toggle Animation
Author: @keyframers (keyframers)
Created on: April 2, 2019
Made with: HTML, SCSS
27. Simple Knobby Toggles
Author: Daryn St. Pierre (bloqhead)
Links: Source Code / Demo
Created on: January 8, 2019
Made with: Pug, SCSS
CSS Pre-processor: SCSS
JS Pre-processor: Babel
HTML Pre-processor: Pug
28. Checkbox Rocker Toggle Switch
An HTML checkbox form element styled as a rocker toggle switch.
Author: Marcus Connor (marcusconnor)
Links: Source Code / Demo
Created on: November 8, 2018
Made with: HTML, CSS
Tags: rocker, toggle, switch, form
29. Gender Toggle Pure CSS
Author: Chintu Yadav Sara (chintuyadav)
Links: Source Code / Demo, Dribbble Shot
Created on: January 1, 2019
Made with: HTML, CSS
30. Toggle Button Switiches
Author: Stockin (Stockin)
Links: Source Code / Demo
Created on: October 8, 2018
Made with: HTML, CSS, JS
31. Pure CSS Bulb Switch
Author: Grzegorz Witczak (Wujek_Greg)
Links: Source Code / Demo, Dribbble Shot
Created on: October 25, 2018
Made with: HTML, Stylus, JS
Tags: switch, toggle, pure, css, bulb
32. UI/UX Example: Tab Switch Animation
Low fidelity mobile phone mockup done with css and a nice tab switch animation.
Author: Angel Davcev (Gelsot)
Created on: March 7, 2018
Made with: Pug, Sass, Babel
CSS Pre-processor: Sass
JS Pre-processor: Babel
HTML Pre-processor: Pug
Tags: ui, ux, mobile, phone, tabs
33. Lock Switch Animation
Author: Aaron Iker (aaroniker)
Links: Source Code / Demo, Dribbble.com
Created on: October 22, 2018
Made with: HTML, SCSS
Tags: lock, switch, animation, unlock, slider
34. Switches Checkboxes
Author: Zed Dash (z-)
Links: Source Code / Demo, Dribbble Shot
Created on: September 23, 2018
Made with: HTML, SCSS, JS
Tags: checkbox, css, black, white
35. Pure CSS Toggle Buttons | ON-OFF Switches
Collection of toggle buttons / on-off switches which can be practically used in a website. Designed using CSS without any JavaScript :) Which one is your fav?
Author: Himalaya Singh (himalayasingh)
Links: Source Code / Demo
Created on: October 2, 2018
Made with: HTML, CSS, JS
Tags: toggle-buttons, on-off switches, buttons, pure-css, animated
36. Toggle Buttons / On-Off Switches
Day night toggle button, elastic toggle button or on-off switches. Code representation of the Dribbble shot: https://dribbble.com/shots/4298041-Daily-UI-015-On-Off-Switch
Author: Himalaya Singh (himalayasingh)
Links: Source Code / Demo, Dribbble Shot
Created on: August 22, 2018
Made with: HTML, CSS, JS
Tags: toggle-button, on/off switch, dribbble shot, day night toggle button, elastic toggle button
37. Totoro Toggle
one of my fave characters + one of my fave checkbox hack formats, together at last for this week's CodePen challenge
Author: Adam Kuhn (cobra_winfrey)
Links: Source Code / Demo
Created on: July 17, 2018
Made with: Haml, SCSS
CSS Pre-processor: SCSS
JS Pre-processor: None
HTML Pre-processor: Haml
Tags: totoro, ghibli, codepen challenge, animation, pure-css
38. Cold-Hot Toggle Switch
Probably a toggle switch concept that no one has tried before. This one is for temperature—options being cold or hot. The idea is to portray the handle as an ice cube for cold and a flame for hot. For hot, the cube moves right and melts at the same time, and a rising flame moves along with...Read More
Author: Jon Kantner (jkantner)
Links: Source Code / Demo
Created on: June 8, 2018
Made with: HTML, CSS
Tags: toggle-switch, checkbox, temperature
39. Wobble Toggle
Author: Adam Kuhn (cobra_winfrey)
Links: Source Code / Demo
Created on: July 30, 2018
Made with: Haml, SCSS
CSS Pre-processor: SCSS
JS Pre-processor: None
HTML Pre-processor: Haml
40. CSS Bear Toggle
A beary cute toggle.
Author: Anastasia Goodwin (agoodwin)
Links: Source Code / Demo
Created on: May 31, 2018
Made with: HTML, SCSS
Tags: toggle, bear, css, animation
41. Realistic Toggle Button
Author: Alex (AlexJedi)
Links: Source Code / Demo
Created on: August 27, 2017
Made with: Pug, SCSS, JS
CSS Pre-processor: SCSS
JS Pre-processor: None
HTML Pre-processor: Pug
Tags: toggle, material, animation, css
42. Toggle By
Author: David Darnes (daviddarnes)
Links: Source Code / Demo, Dribbble.com
Created on: March 13, 2018
Made with: HTML, CSS
43. CSS Toggle
Author: Katherine Kato (kathykato)
Created on: March 8, 2018
Made with: HTML, SCSS
Tags: toggle, face, kawaii, css, animation
44. Implementation Of Liquid Button
Author: Alex (AlexJedi)
Created on: June 22, 2017
Made with: Pug, SCSS, JS
CSS Pre-processor: SCSS
JS Pre-processor: None
HTML Pre-processor: Pug
Tags: toggle, css, animation, material, button
45. Pure Css Elastic Toggle
Author: halvves (halvves)
Links: Source Code / Demo
Created on: May 25, 2018
Made with: HTML, PostCSS
Tags: toggle, switch, animation, cpc-checkboxes, elastic
46. Another Toggle
Author: valaxin (valaxin)
Links: Source Code / Demo
Created on: February 18, 2016
Made with: HTML, CSS
47. Pure CSS Day And Night Toggle
Saw this dribbble shot by Rappora, loved it, wanted to see it alive. See https://dribbble.com/shots/2360260-AM-PM-Toggle
Author: Benjamin Réthoré (bnthor)
Links: Source Code / Demo, Design Code
Created on: November 23, 2015
Made with: HTML, SCSS
Tags: toggle, form, control
48. Pure CSS Minimal Toggle
Toggle with just CSS. Enjoy it!
Author: Rau (raubaca)
Links: Source Code / Demo
Created on: February 8, 2016
Made with: HTML, SCSS, JS
Tags: css, toggle, checkbox
49. Sub/Sup Toggle
Author: Adam Kuhn (cobra_winfrey)
Links: Source Code / Demo
Created on: May 23, 2018
Made with: HTML, SCSS
Tags: codepenchallenge, challenge, sub, sup, toggle
50. Kitty Toggle
A simple checkbox toggle improved by being made into a cat.
Author: Natalya (tallys)
Links: Source Code / Demo
Created on: August 10, 2015
Made with: HTML, SCSS
Tags: cat, kitty, toggle, css
51. IOS 7 Toggle
CSS/HTML only recreation of the iOS 7 toggle buttons. I love the little bounce that the slide has.
Author: Daniel Eden (daneden)
Links: Source Code / Demo
Created on: September 6, 2013
Made with: HTML, CSS
52. Simple Toggle
Simple toggle button.
Author: magnificode (magnificode)
Links: Source Code / Demo
Created on: September 28, 2015
Made with: HTML, SCSS
Tags: toggle
53. Pure CSS Toggles
Getting fun with some animations & transitions :)
Author: Rafael González (rgg)
Links: Source Code / Demo
Created on: July 22, 2015
Made with: HTML, SCSS
Tags: transition, animation, css, ui
54. Skew Switch!
Author: Abhijit Hota (XDBoy018)
Links: Source Code / Demo, Design
Created on: December 15, 2014
Made with: Haml, SCSS, JS
CSS Pre-processor: SCSS
JS Pre-processor: None
HTML Pre-processor: Haml
55. Toggle Buttons / On-Off Switches
Day night toggle button, elastic toggle button or on-off switches. Code representation of the Dribbble shot: https://dribbble.com/shots/4298041-Daily-UI-015-On-Off-Switch
Author: Himalaya Singh (himalayasingh)
Links: Source Code / Demo
Created on: August 22, 2018
Made with: HTML, CSS, JS
Tags: toggle-button, on/off switch, dribbble shot, day night toggle button, elastic toggle button
56. Pure CSS Day/Night Toggle Swith
Author: Jason Tyler (jsndks)
Links: Source Code / Demo, Drbl.in
Created on: January 30, 2015
Made with: HTML, SCSS, JS
Tags: pure-css, toggle, ui, dribbble
57. SVG Switches Design
Original design can be found here: https://dribbble.com/shots/1095343-Switches
Author: Maksim Daunarovich (MaxStalker)
Links: Source Code / Demo, Design
Created on: January 14, 2015
Made with: HTML, CSS
Tags: svg
58. Volume Toggle CSS Switch
Author: Aaron Iker (aaroniker)
Links: Source Code / Demo
Created on: October 17, 2019
Made with: HTML, SCSS
Tags: switch, toggle, volume, control, svg
59. (Almost) Pure CSS Night/day Toggle
A Day/Night Toggle, inspired by a dribbble from Bojan Mesar. see link to original GIF
Author: Lurx (lurx)
Links: Source Code / Demo
Created on: January 10, 2019
Made with: HTML, SCSS, JS
Tags: toggle-switch, checkbox-toggle, inspired
60. Pure CSS Toggle Switch
A pure CSS based toggle switch no Jquery needed.
Author: Alan Parsons (ParsonsProjects)
Links: Source Code / Demo
Created on: October 13, 2014
Made with: HTML, Less
Tags: css3, css, toggle-switch
61. Custom Checkbox / Toggle Switch
Collection of four toggle switches made with html and css without a single line of javascript. Two of the switches are made with the help of svg also.
Author: thelaazyguy (thelaazyguy)
Links: Source Code / Demo
Created on: August 26, 2017
Made with: HTML, CSS
Tags: toggle switches, toggle animation, custom-checkbox, checkbox animation
62. Bootstrap Button Toggle (On/off Switch)
Working on a client project that will be using Bootstrap, and needed to build a toggle/switch that came in a couple different sizes. I wasn't seeing that as a built-in option within Bootstrap, and I didn't really like the ones already out there that I found from a quick search (I didn't wa...Read More
Author: Aanjulena Sweet (aanjulena)
Links: Source Code / Demo
Created on: February 16, 2017
Made with: HTML, Less
Tags: bootstrap, toggle, switch, css, button
63. Bootstrap Pure CSS Switch/Toggle Buttons
Author: Jennifer Louie (jenniferlouie)
Links: Source Code / Demo
Created on: March 13, 2015
Made with: HTML, SCSS
Tags: bootstrap, toggle, checkbox, switch button
64. Custom-Toggle Bootstrap 4 Switches - Sizes Large And Extra Large
Custom Toggles for BS4 only come in one size. Large and Extra Large sizes would be nice. Simply adding the scss and the size classes will make them much better.
Author: Frisby (frisby)
Links: Source Code / Demo
Created on: March 10, 2020
Made with: HTML, SCSS
Tags: bootstrap, boostrap 4, switches, custom-toggle, switch
65. All-CSS Toggle Switch (Checkbox Hack)
Author: Marcus Burnette (mburnette)
Links: Source Code / Demo
Created on: January 11, 2017
Made with: HTML, SCSS
66. Pure CSS Two-Way Toggle Switch
From Sander: This is a pure-css clean two-way toggle switch with two states. Enjoy. Share.
Author: Sander (Sandroid) (UXauthority)
Links: Source Code / Demo
Created on: May 26, 2016
Made with: HTML, CSS, JS
Tags: switch, toggle, pure-css, two-way
67. CSS Toggle Switch
This is a toggle that overrides a native checkbox input element. The sizes are based on a couple of CSS variables at the top level of the widget. The toggle is hidden from accessibility tools, such as screen readers, which will use the default native HTML checkbox. Keyboard users can tab ...Read More
Author: Jeroen van der Tuin (Jeromche)
Links: Source Code / Demo
Created on: September 15, 2019
Made with: HTML, PostCSS, Babel
Tags: form-input, toggle, checkbox
68. Pure CSS Toggle Switch
Author: Morgan Carter (morgoe)
Links: Source Code / Demo
Created on: October 12, 2015
Made with: HTML, SCSS
69. Radio Button Toggle Switch
style two radio buttons to not look so awful
Author: Eric Kelley (emkelley)
Links: Source Code / Demo
Created on: April 24, 2018
Made with: HTML, SCSS
Tags: radio, radio-buttons, radio button css, radio button toggle, toggle-switch
70. BB-8 Toggle Switch|Pure CSS
bb-8 toggle switch that changes background color
Author: Claudia Alphonse (claudz1)
Links: Source Code / Demo
Created on: January 24, 2018
Made with: HTML, SCSS
Tags: pure-css, toggle-switch, bb8
71. Google CSS Only Toggle Switch
CSS only toggle switch changes the colors of the Google logo. Based on a dribble - https://dribbble.com/shots/2544386-Google
Author: Edd Yerburgh (eddyerburgh)
Links: Source Code / Demo
Created on: February 23, 2016
Made with: Pug, SCSS, JS
CSS Pre-processor: SCSS
JS Pre-processor: None
HTML Pre-processor: Pug
Tags: pure-csss, google, toggle, toggle-switch
72. Cute Animated Checkbox
Based on this Dribbble: https://dribbble.com/shots/6266357-Checkboxswitcher
Author: Katie Boedges (kboedges)
Links: Source Code / Demo
Created on: September 20, 2019
Made with: HTML, CSS
Tags: css, checkbox, animated, toggle
73. Toggle Flavoured Checkbox
A CSS only transformation of a checkbox into a toggle switch. Supports checked, focus, disabled, indeterminate, hover and active states. Features an animated transition on change. I've used a [toggle] property but you could just use a class. Based on https://codepen.io/andreasstorm/pen/j...Read More
Author: Chris Smith (chris22smith)
Links: Source Code / Demo
Created on: January 15, 2020
Made with: HTML, SCSS, JS
Tags: checkbox, switch, toggle, boolean
NEW
🔥 Auto-Apply to 100's of Jobs With AI 🔥
👉
Click to visit: ApplyFox.ai
More Awesome Lists:
Share: