Created
June 26, 2019 13:36
-
-
Save qawemlilo/9ee0d994ca03dca9b0fd3e77f1fc3095 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
body { | |
background-color: #FDD692; | |
} | |
.container { | |
margin: auto; | |
position: absolute; | |
top: 0; | |
bottom: 0; | |
left: 0; | |
right: 0; | |
width: 200px; | |
height: 200px; | |
} | |
.clock { | |
position: absolute; | |
} | |
.analog { | |
z-index: 1; | |
position: absolute; | |
width: 200px; | |
height: 200px; | |
background: #FFF; | |
border: 20px solid #EC7357; | |
border-radius: 100%; | |
} | |
.mid { | |
z-index: 1; | |
position: absolute; | |
top: 105px; | |
left: 105px; | |
width: 30px; | |
height: 30px; | |
border-radius: 100%; | |
background: #754F44; | |
} | |
.hour { | |
z-index: 1; | |
position: absolute; | |
left: 118px; | |
top: 123px; | |
background: #754F44; | |
width: 10px; | |
height: 70px; | |
border-radius: 20px; | |
transform-origin: top; | |
transform: rotate(90deg); | |
} | |
.minute { | |
z-index: 5; | |
position: absolute; | |
left: 115px; | |
top: 123px; | |
background: #754F44; | |
width: 8px; | |
height: 85px; | |
border-radius: 20px; | |
transform-origin: top; | |
transform: rotate(260deg); | |
} | |
.second { | |
z-index: 1; | |
position: absolute; | |
left: 120px; | |
top: 120px; | |
background: #FDD692; | |
width: 3px; | |
height: 80px; | |
border-radius: 0%; | |
transform-origin: top; | |
transform: rotate(180deg); | |
} | |
</style> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="clock"> | |
<div class="analog"></div> | |
<div class="shadow"></div> | |
<div class="mid"></div> | |
<div class="hour"></div> | |
<div class="minute"></div> | |
<div class="second"></div> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment