-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathmain.css
69 lines (59 loc) · 1.06 KB
/
main.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
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
div {
width: 50px;
height: 50px;
border: 12px solid #1190F6;
border-left-color: transparent;
border-radius: 50%;
padding: 50px;
position: relative;
display: flex;
justify-content: center;
align-items: center;
animation: spin 1s linear infinite;
}
div::before {
content: "";
position: absolute;
border: 12px solid #F7AF00;
border-radius: 50%;
width: 100%;
height: 100%;
padding: 20px;
border-right-color: transparent;
animation: spin 3s linear infinite reverse;
}
div::after {
content: "";
position: absolute;
border: 12px solid black;
border-radius: 50%;
width: 100%;
height: 100%;
padding: 40px;
border-bottom-color: transparent;
animation: spin 2s linear infinite reverse;
}
div:hover,
div:hover::before,
div:hover::after {
animation-play-state: paused;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}