This repository was archived by the owner on Oct 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
101 lines (99 loc) · 2.05 KB
/
style.css
File metadata and controls
101 lines (99 loc) · 2.05 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
body{
margin: 0;
padding: 0;
background: linear-gradient(aqua,black);
}
.box{
border-radius: 50%;
}
.container{
position: absolute;
top: 50%;
left: 50%;
transform: translate(50%, 50%);
}
.loading{
width: 50px;
height: 50px;
position: relative;
box-sizing: border-box;
background: orange;
animation: rotation 2s linear infinite;
}
@keyframes rotation {
0% {
transform: rotate(90deg);
}
50%, 100% {
transform: rotate(360deg);
}
}
.loading .box{
position: absolute;
width: 100%;
height: 100%;
animation: animation 2s linear infinite;
}
@keyframes animation {
0%{
transform: rotate(0deg);
}
50%, 100%{
transform: rotate(180%);
}
}
.loading::before,
.loading .box::before {
content: '';
position: absolute;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
background: #ffffff;
}
.loading::before {
border: 1px solid #000;
}
.loading .box:nth-child(1)::before {
background: #0fbcf9;
}
.loading .box:nth-child(2)::before {
background: #0be881;
}
.loading .box:nth-child(3)::before {
background: #ffa801;
}
.loading .box:nth-child(4)::before {
background: #ff0000;
}
.loading .box {
position: absolute;
width: 100%;
height: 100%;
animation: animate 1s linear infinite;
}
@keyframes animate {
0% {
transform: rotate(0deg);
}
50%, 100% {
transform: rotate(180deg);
}
}
.loading .box:nth-child(1) {
top: -50px;
transform-origin: bottom right;
}
.loading .box:nth-child(2) {
right: -50px;
transform-origin: bottom left;
}
.loading .box:nth-child(3) {
bottom: -50px;
transform-origin: top left;
}
.loading .box:nth-child(4) {
left: -50px;
transform-origin: top right;
}