ToggleCss
How do I make an togglecss?
What is a togglecss? How do you make a togglecss? This script and codes were developed by Lahvjal on 24 August 2022, Wednesday.
ToggleCss - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>ToggleCss</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="togglez"> <input class="tgl" id="cb2" type="checkbox"/> <label class="tgl-btn" for="cb2"></label>
</div>
</body>
</html>
ToggleCss - Script Codes CSS Codes
.togglez { height: 100vh; width: 100vw; border: 2px solid; display: flex; align-items: center; justify-content: center; box-sizing: border-box;
}
.tgl { display: none;
}
.tgl, .tgl:after, .tgl:before, .tgl *, .tgl *:after, .tgl *:before, .tgl + .tgl-btn { box-sizing: border-box;
}
.tgl::selection, .tgl:after::selection, .tgl:before::selection, .tgl *::selection, .tgl *:after::selection, .tgl *:before::selection, .tgl + .tgl-btn::selection { background: none;
}
.tgl + .tgl-btn { outline: 0; display: block; width: 4em; height: 2em; position: relative; cursor: pointer; user-select: none;
}
.tgl + .tgl-btn:after, .tgl + .tgl-btn:before { position: relative; display: block; content: ""; width: 50%; height: 100%;
}
.tgl + .tgl-btn:after { left: 0;
}
.tgl + .tgl-btn:before { display: none;
}
.tgl:checked + .tgl-btn:after { left: 50%;
}
.tgl + .tgl-btn { background: #ddd; border-radius: 2em; padding: 2px; transition: all 0.4s ease; border: 1px solid #ddd;
}
.tgl + .tgl-btn:after { border-radius: 2em; background: #fbfbfb; transition: left 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), padding 0.3s ease, margin 0.3s ease;
}
.tgl + .tgl-btn:hover:after { will-change: padding;
}
.tgl + .tgl-btn:active { box-shadow: inset 0 0 0 2em #e8eae9;
}
.tgl + .tgl-btn:active:after { padding-right: 0.8em;
}
.tgl:checked + .tgl-btn { background: #86d993; border: 1px solid #86d993;
}
.tgl:checked + .tgl-btn:active { box-shadow: none;
}
.tgl:checked + .tgl-btn:active:after { margin-left: -0.8em;
}
Developer | Lahvjal |
Username | lahvjal |
Uploaded | August 24, 2022 |
Rating | 3 |
Size | 2,517 Kb |
Views | 34,408 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Portfolio ideas | 2,680 Kb |
Paragraphs - RMO | 2,099 Kb |
Portfolio Layout Flex | 3,489 Kb |
Floating Product image | 2,443 Kb |
A Pen by Lahvjal | 1,876 Kb |
PNT Page | 4,697 Kb |
Togglez | 3,488 Kb |
Product-Carousel items | 3,595 Kb |
Fall blends lander | 4,583 Kb |
24 Hour Countdown Clock Loop | 2,215 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Isometric css island | Xaddict | 2,950 Kb |
Page Transitions in Backbone | Mikefowler | 3,691 Kb |
Pure CSS Animated Photo Stack | Depthdev | 2,486 Kb |
Simple Flat Menu | Jeplaa | 2,467 Kb |
Material design buttons | Fischaela | 4,381 Kb |
HexMaze | Cantelope | 4,825 Kb |
Weather App | OmranAbazid | 2,596 Kb |
Headroom.js demo | WickyNilliams | 3,982 Kb |
A Pen by Theun | Tjoen | 6,152 Kb |
Border-radius animation | Yukulele | 2,480 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!