Cool Radio
How do I make an cool radio?
What is a cool radio? How do you make a cool radio? This script and codes were developed by Eric Rogg on 24 August 2022, Wednesday.
Cool Radio - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Cool Radio</title> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ @import url(http://fonts.googleapis.com/css?family=Open+Sans:400,300,700);
body { background: #2A2A34;
}
h1 { font-family: "Open Sans", sans; font-weight: 300; text-align: center; color: rgba(255, 255, 255, 0.5); margin-top: 10%;
}
.wrap { margin: 5% 20px 20px -125px; overflow: hidden; position: absolute; left: 50%; top: 20%;
}
.log { color: #DDD; margin-top: 20%; padding: 0 5px; opacity: .3; transition: all 250ms; text-align: center; display: none;
}
.radio-group { width: 250px; display: table; table-layout: fixed; border-spacing: 0; border-collapse: separate;
}
.radio-group__label { display: table-cell; height: 28px; padding: 5px; vertical-align: middle; text-align: center; position: relative; border: 1px solid #4F5167; border-style: solid none solid solid; border-radius: 5px 0 0 5px; color: #4F5167; -moz-transition: border 250ms, color 250ms; -o-transition: border 250ms, color 250ms; -webkit-transition: border 250ms, color 250ms; transition: border 250ms, color 250ms; cursor: pointer;
}
.radio-group__label + input + .radio-group__label { border-radius: 0 5px 5px 0; border-style: solid solid solid none;
}
.radio-group__label + input + .radio-group__label:before { content: " "; display: block; position: absolute; top: -1px; width: 100%; height: 100%; border: 1px solid #389E29; border-radius: 5px 0 0 5px; transform: translate3d(-103%, 0, 0); transition: all 250ms;
}
.radio-group__label + input:checked + .radio-group__label:before { border-radius: 0 5px 5px 0; transform: translate3d(-6px, 0, 0);
}
.radio-group__option:checked + label { color: #389E29;
}
.radio-group__option { display: none;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <h1>Who would win in a fight to the death?</h1>
<div class="wrap">
<div class="radio-group"> <input id="opt_1" class="radio-group__option" type="radio" name="opt" checked="checked"> <label class="radio-group__label" for="opt_1"> James Bond </label> <input id="opt_2" class="radio-group__option" type="radio" name="opt"> <label class="radio-group__label" for="opt_2"> Jason Bourne </label>
</div> <br/> <div class="log"> Hello log. </div>
</div>
<script class="cssdeck" src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script> <script src="js/index.js"></script>
</body>
</html>
Cool Radio - Script Codes CSS Codes
@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,300,700);
body { background: #2A2A34;
}
h1 { font-family: "Open Sans", sans; font-weight: 300; text-align: center; color: rgba(255, 255, 255, 0.5); margin-top: 10%;
}
.wrap { margin: 5% 20px 20px -125px; overflow: hidden; position: absolute; left: 50%; top: 20%;
}
.log { color: #DDD; margin-top: 20%; padding: 0 5px; opacity: .3; transition: all 250ms; text-align: center; display: none;
}
.radio-group { width: 250px; display: table; table-layout: fixed; border-spacing: 0; border-collapse: separate;
}
.radio-group__label { display: table-cell; height: 28px; padding: 5px; vertical-align: middle; text-align: center; position: relative; border: 1px solid #4F5167; border-style: solid none solid solid; border-radius: 5px 0 0 5px; color: #4F5167; -moz-transition: border 250ms, color 250ms; -o-transition: border 250ms, color 250ms; -webkit-transition: border 250ms, color 250ms; transition: border 250ms, color 250ms; cursor: pointer;
}
.radio-group__label + input + .radio-group__label { border-radius: 0 5px 5px 0; border-style: solid solid solid none;
}
.radio-group__label + input + .radio-group__label:before { content: " "; display: block; position: absolute; top: -1px; width: 100%; height: 100%; border: 1px solid #389E29; border-radius: 5px 0 0 5px; transform: translate3d(-103%, 0, 0); transition: all 250ms;
}
.radio-group__label + input:checked + .radio-group__label:before { border-radius: 0 5px 5px 0; transform: translate3d(-6px, 0, 0);
}
.radio-group__option:checked + label { color: #389E29;
}
.radio-group__option { display: none;
}
Cool Radio - Script Codes JS Codes
// from - http://cssdeck.com/labs/ql8jmgjt
function updateLog() { var one = $("#opt_1:checked").val() ? "On" : "Off" var two = $("#opt_2:checked").val() ? "On" : "Off" $(".log").html("Everyone: " + one + "<br/>Just for me: " + two)
}
$(".radio-group__option").change(updateLog)
Developer | Eric Rogg |
Username | er40 |
Uploaded | August 24, 2022 |
Rating | 4.5 |
Size | 4,023 Kb |
Views | 30,360 |
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 |
Casestudy | 3,080 Kb |
A Pen by Eric Rogg | 2,795 Kb |
Google Play Ratings | 3,709 Kb |
Header | 1,542 Kb |
JQuery Progress Bar22 | 6,701 Kb |
Checkbox | 5,169 Kb |
Dark Social Navigation | 2,243 Kb |
Simple List | 2,001 Kb |
Sign Up Form | 2,373 Kb |
Tri color loader test | 1,954 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 |
Canvas Orbital Trails v2 | Jackrugile | 3,421 Kb |
Scrolling Horizontal Isotope | Bramus | 2,017 Kb |
Reading Grid | Tappily | 4,306 Kb |
TweenMax transformOrigin Bubble | Nicolund | 2,209 Kb |
ECharts Version 3.0 - Bar Marker Chart | WebCodePro | 2,726 Kb |
Resizable SASS Icons | Marianarlt | 7,611 Kb |
Drawing a Terminal with CSS | Lachlanjc | 3,185 Kb |
Header Line Issue | Charlie-volpe | 1,768 Kb |
Drag in vanilla js using dotval math instead of translate | Paulq | 2,662 Kb |
A Pen by Brendan Skousen | Bskousen | 2,954 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!