Skip to content

Instantly share code, notes, and snippets.

@zhishaofei3
Created August 1, 2016 12:02
Show Gist options
  • Save zhishaofei3/0a745e0f20e867ac8e8a03ec1f18b7dc to your computer and use it in GitHub Desktop.
Save zhishaofei3/0a745e0f20e867ac8e8a03ec1f18b7dc to your computer and use it in GitHub Desktop.
Untitled
.clock {
width: 100px;
height: 100px;
background-color: #333;
position: relative;
border-radius: 50%;
}
.clock:after {
content: "";
width: 50px;
height: 2px;
background-color: #FFF;
position: absolute;
top: 50%;
left: 50%;
animation: clock 60s linear infinite;
transform-origin: 0 0;
}
@keyframes clock {
from { transform: rotate(-.25turn); }
to { transform: rotate(.75turn); }
}
<div class="clock"></div>
// alert('Hello world!');
{"view":"split-vertical","fontsize":"130","seethrough":"","prefixfree":"1","page":"html"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment