DEV Community

gaganjot singh
gaganjot singh

Posted on

20 CSS Toggle Switches Example

Alt Text
If You Like This Article then check Out more Examples
50+ CSS Toggle Switches

 1.
  Title:- Pure CSS Toggles
  Author:- Rafael González
  Made With:- HTML CSS JAVASCRIPT
Enter fullscreen mode Exit fullscreen mode

Getting fun with some animations & transitions :)

  2.
  Title:- CSS Theme Switcher
  Author:- Michelle Barker
  Made With:- HTML CSS
Enter fullscreen mode Exit fullscreen mode

  3.     
  Title:- Custom Checkbox / Toggle Switch
  Author:- thelaazyguy
  Made With:- HTML CSS
Enter fullscreen mode Exit fullscreen mode

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.

   4.
   Title:- Light Bulb Toggle Switch
   Author:- Jon Kantner
   Made With:- HTML CSS
Enter fullscreen mode Exit fullscreen mode

A custom checkbox that features a light bulb’s on/off state in the fashion of a toggle switch

Update 7/28/18: Responsiveness added

   5.
   Title:- Toggle switch with checkbox:checked
   Author:- Jeroen Franse
   Made With:- HTML CSS
Enter fullscreen mode Exit fullscreen mode

   6.
   Title:- Simple CSS Switch / Toggle
   Author:- Aaron Iker
   Made With:- HTML CSS
Enter fullscreen mode Exit fullscreen mode

From https://dribbble.com/shots/2326459-Adobe-Toggle-Switch

   7.
   Title:- Gooey toggle switch
   Author:- Vincent Durand
   Made With:- HTML CSS
Enter fullscreen mode Exit fullscreen mode

Gooey checkbox CSS only

Inspired by : https://dribbble.com/shots/2236296-Feelastic-Switch

    8.
    Title:- Toggles
    Author:- Olivia Ng
    Made With:- HTML CSS JAVSCRIPT
Enter fullscreen mode Exit fullscreen mode

Do you want your toggle fancy or functional? Yes.

      9.
      Title:- A bunch of funky CSS3 Toggle Buttons
      Author:- Ashley Watson-Nolan
      Made With:- HTML CSS
Enter fullscreen mode Exit fullscreen mode

     10
     Title:- Checkbox CSS Toggle – Day / Night Mode
     Author:- Ahmad Emran
     Made With:- HTML CSS
Enter fullscreen mode Exit fullscreen mode

Checkbox CSS Toggle - Day / Night Mode

       10.
       Title:- Big Fat Toggle Switch
       Author:- Andrew Creech
       Made With:- HTML CSS
Enter fullscreen mode Exit fullscreen mode

       11.
       Title:- A Confusing Toggle Button
       Author:- Himalaya Singh
       Made With:- HTML CSS   
Enter fullscreen mode Exit fullscreen mode

A Confusing Toggle Button / Toggle Switch Using HTML And CSS

   12.
   Title:- 3D toggle – click it!
   Author:- Ana Tudor
   Made With:- HTML CSS
Enter fullscreen mode Exit fullscreen mode

   13.
    Title:- Sleek sliding toggle checkbox
    Author:- Comehope
    Made With:- HTML CSS
Enter fullscreen mode Exit fullscreen mode

Watch interactive screencast on Scrimba: https://scrimba.com/p/pEgDAM/cPvMzTg

      14.
       Title:- CSS Switch – Day and Night
       Author:- Angela Velasquez
       Made With:- HTML CSS
Enter fullscreen mode Exit fullscreen mode

Having some fun with css.

   15.
   Title:- Pure CSS dark mode toggle switcher
   Author:- Demilade Olaleye
   Made With:- HTML CSS
Enter fullscreen mode Exit fullscreen mode

   16.
   Title:- Custom Toggle Switch Inspiration (Pure CSS)
   Author:- Aditya Bhandari
   Made With:- HTML CSS
Enter fullscreen mode Exit fullscreen mode

A simple toggle in pure CSS3 with a clean HTML markup which includes a label. Leave the label blank if you want do not want any text.

     17.
     Title:- Accessible Custom Toggle Switch
     Author:- Homer Gaines
     Made With:- HTML CSS
Enter fullscreen mode Exit fullscreen mode

This pen shows how to markup and style a semantic checkbox to look and behave like a toggle switch.

    18.
    Title:- Flat Toggle Switch
    Author:- Felix De Montis
    Made With:- HTML CSS
Enter fullscreen mode Exit fullscreen mode

   19.
   Title:- Cookie switch (pure CSS, no SVG)
   Author:- Angela Galliat
   Made With:- HTML CSS
Enter fullscreen mode Exit fullscreen mode

   20.
   Title:- BB-8 Toggle Switch|Pure CSS
   Author:- Claudia Alphonse
   Made With:- HTML CSS JAVASCRIPT
Enter fullscreen mode Exit fullscreen mode

bb-8 toggle switch that changes background color

If You Like This Article then check Out more Examples
50+ CSS Toggle Switches

Top comments (0)