-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
73 lines (67 loc) · 1.55 KB
/
style.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
html{
background: url(background1.jpg);
background-size: cover;
/* /* background-position: center; */
}
body {
margin: 0;
font-size: 2rem;
display: flex;
flex: 1;
min-height: 100vh;
align-items: center;
}
.watch{
width: 21rem;
height: 21rem;
border: 20px solid white;
border-radius: 50%;
margin: 50px auto;
position: relative;
padding: 2rem;
box-shadow: 0 0 0 4px rgba(0,0,0,0.1), inset 0 0 0 3px #EFEFEF, inset 0 0 10px black, 0 0 10px rgba(0,0,0,0.2)
}
.watch-face{
position: relative;
width: 100%;
height: 100%;
/* transform: translateY(3px); */
}
.hand-h{
display: flex;
flex-direction: column-reverse;
width: 37%;
height: 6px;
position: absolute;
top: 50%;
left: 50%;
transform-origin: 0%;
transition: all 0.05s;
transform: rotate(-90deg);
transition-timing-function: cubic-bezier(0.7,2.7,0.58,1);
background-color: black;
}
.hand-m{
width: 43%;
height: 6px;
position: absolute;
top: 50%;
left: 50%;
transform-origin: 0%;
transition: all 0.05s;
transform: rotate(-90deg);
transition-timing-function: cubic-bezier(0.7,2.7,0.58,1); /*for animating hands of clock */
background-color: black;
}
.hand-s{
width: 50%;
height: 6px;
position: absolute;
top: 50%;
left: 50%;
transform-origin: 0%;
transition: all 0.05s;
transform: rotate(-90deg);
transition-timing-function: cubic-bezier(0.7,2.7,0.58,1); /*for animating hands of clock */
background-color: black;
}