Realistics radio buttons with only css
How do I make an realistics radio buttons with only css?
What is a realistics radio buttons with only css? How do you make a realistics radio buttons with only css? This script and codes were developed by Twikito on 11 September 2022, Sunday.
Realistics radio buttons with only css - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Realistics radio buttons with only css</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel='stylesheet prefetch' href='https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <section> <div> <input id="chk01" type="checkbox" /> <label for="chk01">Lorem ipsum dolor sit amet.</label> </div> <div> <input id="chk02" type="checkbox" /> <label for="chk02">Eos voluptate, impedit porro iusto.</label> </div> <div> <input id="chk03" type="checkbox" /> <label for="chk03">Ipsum, distinctio? Odio, delectus, maiores.</label> </div> <div> <input id="chk04" type="checkbox" /> <label for="chk04">Sint maxime ex nisi iste!</label> </div> <div> <input id="chk05" type="checkbox" /> <label for="chk05">Quisquam, ipsam autem veniam libero!</label> </div> <div class="total"> Total checked: </div>
</section> <script src="js/index.js"></script>
</body>
</html>
Realistics radio buttons with only css - Script Codes CSS Codes
section { counter-reset: total;
}
input { opacity: 0; position: absolute;
}
label { position: relative; display: block; background: #f8f8f8; border: 1px solid #f0f0f0; border-radius: 2em; padding: .5em 1em .5em 5em; box-shadow: 0 1px 2px rgba(100, 100, 100, 0.5) inset, 0 0 10px rgba(100, 100, 100, 0.1) inset; cursor: pointer; text-shadow: 0 2px 2px #fff;
}
label::before { content: ''; position: absolute; top: 50%; left: .7em; width: 3em; height: 1.2em; border-radius: .6em; background: #eee; -webkit-transform: translateY(-50%); transform: translateY(-50%); box-shadow: 0 1px 3px rgba(100, 100, 100, 0.5) inset, 0 0 10px rgba(100, 100, 100, 0.2) inset;
}
label::after { content: ''; position: absolute; top: 50%; left: .5em; width: 1.4em; height: 1.4em; border: .25em solid #fafafa; border-radius: 50%; box-sizing: border-box; background-color: #ddd; background-image: -webkit-linear-gradient(bottom, #fff 0%, #fff 40%, transparent 100%); background-image: linear-gradient(to top, #fff 0%, #fff 40%, transparent 100%); -webkit-transform: translateY(-50%); transform: translateY(-50%); box-shadow: 0 3px 3px rgba(0, 0, 0, 0.5);
}
label, label::before, label::after { -webkit-transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1); transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}
label:hover, input:focus + label { color: black;
}
label:hover::after, input:focus + label::after { background-color: #ccc; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
input:checked { counter-increment: total;
}
input:checked + label::before { background: #1CE;
}
input:checked + label::after { -webkit-transform: translateX(2em) translateY(-50%); transform: translateX(2em) translateY(-50%);
}
.total::after { content: counter(total); font-weight: bold;
}
/* misc */
html, body { height: 100%;
}
body { display: -webkit-box; display: -ms-flexbox; display: flex; background: #eee;
}
section { margin: auto; padding: 2em; background: white; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
div { margin: 1em 0; font: 1.5em/1.4 'Open Sans Condensed', sans-serif; color: #777;
}
Realistics radio buttons with only css - Script Codes JS Codes
/* NO JS!
*/
Developer | Twikito |
Username | Twikito |
Uploaded | September 11, 2022 |
Rating | 4 |
Size | 3,376 Kb |
Views | 28,336 |
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 |
Input awesome effect on focus with only css | 3,789 Kb |
Tooltip with pseudo-element | 2,763 Kb |
Image with hover CSS3 effect and full overlay | 2,724 Kb |
Flexible Google-style loader with CSS | 2,473 Kb |
CSS-only shadow-scrolling effect | 3,062 Kb |
CSS3 trendy retro photo effect | 2,637 Kb |
Easy CSS3 checkboxes and radio buttons | 2,742 Kb |
UI with UX improvements with only CSS | 5,668 Kb |
Summary with pseudo-element | 2,971 Kb |
Beautiful Textual Map of France with CSS | 5,035 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 |
Dribbble Template | ExtremelyGinger | 2,204 Kb |
Simple content swap | Snografx | 1,859 Kb |
CSS Gem Badge | Orchard | 3,335 Kb |
Sign Up Form | Sicontis | 5,272 Kb |
Pictos font library from CodePen | Jstam | 3,790 Kb |
Free css icon set v2 - one div | Ben_jammin | 0 Kb |
Print element on a page | Mrs_snow | 2,081 Kb |
Blank Starter | Mhartington | 2,171 Kb |
Border-radius animation | Yukulele | 2,480 Kb |
CSS3 iPad | Vikvarg | 1,766 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!