forked from codemistic/Web-Development
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
87 lines (73 loc) · 1.45 KB
/
style.css
File metadata and controls
87 lines (73 loc) · 1.45 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
84
85
86
87
body {
background-color: black;
}
.loader {
position: absolute;
top: 50%;
left: calc(50% + 58px);
transform: translate(-50%, -50%) rotate(-90deg) scale(4);
}
.loader span {
position: relative;
display: block;
height: 58px;
width: 2px;
margin-top: -46px;
background: transparent;
animation: animate 2s linear infinite;
}
.loader span::before,
.loader span::after {
content: "";
height: 10px;
width: 10px;
position: absolute;
left: 50%;
border-radius: 50%;
transform: translate(-50%);
background: #f00;
box-shadow: 0 0 2px rgba(0, 0, 0, 1);
}
.loader span::before {
top: 0;
}
.loader span::after {
bottom: 0;
}
.loader span:nth-child(1)::before,
.loader span:nth-child(1)::after {
background-color: #f4bb44;
}
.loader span:nth-child(2)::before,
.loader span:nth-child(2)::after {
background-color: #d22b2b;
}
.loader span:nth-child(3)::before,
.loader span:nth-child(3)::after {
background-color: #aaff00;
}
.loader span:nth-child(4)::before,
.loader span:nth-child(4)::after {
background-color: #0096ff;
}
.loader span:nth-child(1) {
animation-delay: 0s;
}
.loader span:nth-child(2) {
animation-delay: 0.5s;
}
.loader span:nth-child(2) {
animation-delay: 1s;
}
.loader span:nth-child(4) {
animation-delay: 1.5s;
}
@keyframes animate {
0%,
75% {
transform: rotate(0deg);
}
100% {
transform: rotate(180deg);
}
}