-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.scss
More file actions
83 lines (81 loc) · 1.81 KB
/
style.scss
File metadata and controls
83 lines (81 loc) · 1.81 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
body{
background-color: #000000;
height: 100vh;
width: 99%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
h2{
color: white;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.clock{
display: table;
width: 200px; height: 200px;
margin: 0 auto;
border: 6px solid #ff4040;
border-radius: 100%;
position: relative;
&:before{
content: '';
width: 6px; height: 80px;
background-color: #ff4040;
position: absolute;
top: 20px; left: 50%;
transform: translate(-50%,0);
transform-origin: bottom;
animation: timeIcon 12s cubic-bezier(0.95, -1.5, 0.285, 1.85) infinite;
}
&:after{
content: '';
width: 6px; height: 6px;
background-color: #ff4040;
border-radius: 100%;
position: absolute;
top: 50%; left: 50%;
transform: translate(-50%,-50%);
}
}
@keyframes timeIcon {
0% {
transform: translateX(-50%) rotate(0deg);
}
8.33% {
transform: translateX(-50%) rotate(30deg);
}
16.66% {
transform: translateX(-50%) rotate(60deg);
}
24.99% {
transform: translateX(-50%) rotate(90deg);
}
33.32% {
transform: translateX(-50%) rotate(120deg);
}
41.65% {
transform: translateX(-50%) rotate(150deg);
}
49.98% {
transform: translateX(-50%) rotate(180deg);
}
58.31% {
transform: translateX(-50%) rotate(210deg);
}
66.64% {
transform: translateX(-50%) rotate(240deg);
}
74.97% {
transform: translateX(-50%) rotate(270deg);
}
83.8% {
transform: translateX(-50%) rotate(300deg);
}
91.63% {
transform: translateX(-50%) rotate(330deg);
}
100% {
transform: translateX(-50%) rotate(360deg);
}
}