Skip to content

Instantly share code, notes, and snippets.

@fmarcia
Created March 27, 2018 17:14
Show Gist options
  • Save fmarcia/8dbd1c5e519d4e45d2f90fc25fca0c22 to your computer and use it in GitHub Desktop.
Save fmarcia/8dbd1c5e519d4e45d2f90fc25fca0c22 to your computer and use it in GitHub Desktop.
html, body {
margin: 0;
height: 100%;
}
svg#clock {
display: block;
margin: 0 auto;
background-color: #000;
}
#hand {
fill: #fff;
stroke: #fff;
animation: time 3s ease infinite;
}
#hand line {
stroke-linecap: round;
}
@keyframes time {
0% { transform: rotate( 0deg); stroke-width: 24; }
4% { transform: rotate( 0deg); stroke-width: 6; }
33% { transform: rotate(120deg); stroke-width: 6; }
66% { transform: rotate(240deg); stroke-width: 6; }
88% { transform: rotate(360deg); stroke-width: 6; }
92% { transform: rotate(360deg); stroke-width: 24; }
96% { transform: rotate(360deg); stroke-width: 6; }
100% { transform: rotate(360deg); stroke-width: 24; }
}
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment