Skip to content

Instantly share code, notes, and snippets.

@talha08
Created October 27, 2017 13:59
Show Gist options
  • Select an option

  • Save talha08/7059a13f7736cacea2301d2d5c026647 to your computer and use it in GitHub Desktop.

Select an option

Save talha08/7059a13f7736cacea2301d2d5c026647 to your computer and use it in GitHub Desktop.
<div class="radio-inline">
<label class="radio-label"><input type="radio" class="option-input radio" name="failure_attemps" value="10">10</label>
</div>
.radio-label{
padding: 20px;
margin-left: -24px;
margin-right: 30px;
}
*{font-family: 'Roboto', sans-serif;}
@keyframes click-wave {
0% {
height: 40px;
width: 40px;
opacity: 0.35;
position: relative;
}
100% {
height: 200px;
width: 200px;
margin-left: -80px;
margin-top: -80px;
opacity: 0;
}
}
.option-input {
-webkit-appearance: none;
-moz-appearance: none;
-ms-appearance: none;
-o-appearance: none;
appearance: none;
position: relative;
top: 17.33333px;
right: 0;
bottom: 0;
left: 0;
height: 30px;
width: 30px;
transition: all 0.15s ease-out 0s;
background: #cbd1d8;
border: none;
color: #fff;
cursor: pointer;
display: inline-block;
margin-right: 0.5rem;
outline: none;
position: relative;
z-index: 1000;
}
.option-input:hover {
background: #9faab7;
}
.option-input:checked {
background: #40e0d0;
}
.option-input:checked::before {
height: 30px;
width: 30px;
position: absolute;
content: '✔';
display: inline-block;
font-size: 20.66667px;
text-align: center;
line-height: 18px;
}
.option-input:checked::after {
-webkit-animation: click-wave 0.65s;
-moz-animation: click-wave 0.65s;
animation: click-wave 0.65s;
background: #40e0d0;
content: '';
display: block;
position: relative;
z-index: 100;
}
.option-input.radio {
border-radius: 50%;
}
.option-input.radio::after {
border-radius: 50%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment