Skip to content

Instantly share code, notes, and snippets.

@myungwoo-Y
Created July 31, 2020 16:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save myungwoo-Y/556849114bf41ec91dcc5517ceb462ab to your computer and use it in GitHub Desktop.
Save myungwoo-Y/556849114bf41ec91dcc5517ceb462ab to your computer and use it in GitHub Desktop.
input[type="radio"]{
display: none;
}
label{
span{
height: 14px;
width: 14px;
border-radius: 50%;
border: 2px solid skyblue;
float: left;
margin-right: 5px;
}
span:after{
content: "";
height: 10px;
width: 10px;
border-radius: 50%;
background: skyblue;
margin-top: 7px;
margin-left: 7px;
display: block;
position: relative;
border-radius: 50%;
transform: translate(-50%, -50%) scale(0);
transition: 300ms ease-in-out 0s;
}
}
input[type="radio"]:checked ~ span:after{
transform: translate(-50%, -50%) scale(1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment