forked from wesbos/JavaScript30
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
54 lines (54 loc) · 1.07 KB
/
style.css
File metadata and controls
54 lines (54 loc) · 1.07 KB
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
body {
background-image: url("6b9y2vdjy_k-francesco-gallarotti.jpg");
background-position: center;
background-repeat: no-repeat;
background-size: cover;
background-attachment: fixed;
display: flex;
justify-content: center;
text-align: center;
top: 50%;
}
.clock-border{
top: 5vh;
width: 70vh;
height: 70vh;
border-radius: 50%;
background-color: transparent;
border: 25px white solid;
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);
}
.clock-face {
border-radius: 35vh;
background-color: transparent;
position: relative;
width: 100%;
height: 100%;
transform: translateY(-3px); /* account for the height of the clock hands */
}
.hr {
background-color: honeydew;
}
.min {
background-color: maroon;
}
.sec {
background-color: slategrey;
}
.hand{
width:50%;
height:6px;
position: absolute;
top:50%;
transform-origin: 100%;
transform: rotate(90deg);
transition: all 0.05s;
transition-timing-function: cubic-bezier(0.1, 2.7, 0.58, 1);
border-radius: 50%
}