A Pen by ben-walters on CodePen.
Created
September 18, 2014 13:21
-
-
Save ben-walters/a25a2b95c828e083aaa6 to your computer and use it in GitHub Desktop.
A Pen by ben-walters.
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
<div class="knob"></div> |
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
.knob { | |
background:pink; | |
width:100px; | |
height:300px; | |
border-radius:120px 120px 0 0; | |
margin:100px 300px; | |
position:relative; | |
animation: meatspin 2s linear infinite; | |
} | |
.knob:after { | |
display:block; | |
background:pink; | |
content:""; | |
width:100px; | |
height:100px; | |
border-radius:100px 100px 100px 0; | |
bottom:0; | |
left:100%; | |
position:absolute; | |
} | |
.knob:before { | |
display:block; | |
background:pink; | |
content:""; | |
width:100px; | |
height:100px; | |
border-radius:100px 100px 0 100px; | |
bottom:0; | |
right:100%; | |
position:absolute; | |
} | |
@keyframes meatspin { | |
0% { | |
transform: rotate(0deg); | |
} | |
50% { | |
transform: rotate(180deg); | |
} | |
100% { | |
transform: rotate(360deg); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment