-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
46 lines (46 loc) · 989 Bytes
/
index.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#clockContainer{
/* for hour,min and sec hand to adjust their position with respect to the clock */
position: relative;
/* to add the clock in center of container */
margin: auto;
/* vw is 40%of view port ie screen size*/
height: 40vw;
width: 40vw;
/* no repeat is for no repeatation of image */
background: url(clock.png) no-repeat;
background-size: 100%;
background-color: #183D3D;
}
#hour, #minute, #second{
position: absolute;
background: black;
border-radius: 10px;
}
#hour{
width: 1.8%;
height: 25%;
top: 25%;
left: 48.85%;
opacity: 0.8;
/* for hour hand to move from botton side */
transform-origin: bottom;
}
#minute{
width: 1.6%;
height: 30%;
top: 19%;
left: 48.9%;
opacity: 0.8;
transform-origin: bottom;
}
#second{
width: 1%;
height:40%;
top: 9%;
left: 49.25%;
opacity: 0.8;
transform-origin: bottom;
}
body{
background-color: #5C8374;
}