Created
April 6, 2017 18:35
-
-
Save radi-cho/fc5d72a7860933e294cd61631f8e57af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.switch input:checked+span { | |
background-color: #5d9cec; | |
border-color: #5d9cec; | |
transition: all .5s; | |
} | |
.switch span:after { | |
content: ""; | |
position: absolute; | |
background-color: #fff; | |
top: 0; | |
left: 0; | |
height: 18px; | |
width: 18px; | |
border: 1px solid #ddd; | |
border-radius: 400px; | |
box-shadow: 1px 1px 3px rgba(0,0,0,.1); | |
-webkit-transition: all .2s; | |
} | |
.switch input:checked+span:after { | |
left: 50%; | |
transition: all .2s; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment