Skip to content

Instantly share code, notes, and snippets.

@ben-walters
Created September 18, 2014 13:21
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 ben-walters/a25a2b95c828e083aaa6 to your computer and use it in GitHub Desktop.
Save ben-walters/a25a2b95c828e083aaa6 to your computer and use it in GitHub Desktop.
A Pen by ben-walters.
<div class="knob"></div>
.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