Realistics radio buttons with only css

Developer
Size
3,376 Kb
Views
28,336

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 Previews

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!
*/
Realistics radio buttons with only css - Script Codes
Realistics radio buttons with only css - Script Codes
Home Page Home
Developer Twikito
Username Twikito
Uploaded September 11, 2022
Rating 4
Size 3,376 Kb
Views 28,336
Do you need developer help for Realistics radio buttons with only css?

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!

Twikito (Twikito) Script Codes
Create amazing art & images with AI!

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!