-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
41 lines (41 loc) · 837 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
#clockContainer{
position: relative;
background: url(Clock.png) no-repeat;
background-size: 100%;
height: 40vw;
width: 40vw;
margin: auto;
}
#hour, #min, #sec{
position: absolute;
border-radius: 10px;
transform-origin: bottom;
background-color: black;
transition: all 0.5s ease-in;
}
#hour{
width: 1%;
height: 18.5%;
top: 31.9%;
left: 49.45%;
transform: translate(-50%, -100%) rotate(0deg);
}
#min{
width: 1%;
height: 26%;
top: 24.6%;
left: 49.4%;
transform: translate(-50%, -100%) rotate(0deg);
/* display: none; */
}
#sec{
width: 1%;
height: 34%;
top: 16.4%;
left: 49.45%;
transform: translate(-50%, -100%) rotate(0deg);
/* display: none; */
}
h2, h3{
text-align: center;
}