Created
March 27, 2018 17:14
-
-
Save fmarcia/8dbd1c5e519d4e45d2f90fc25fca0c22 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
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; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment