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
<script setup lang="ts"></script>
<template>
<div class="content fit center">
<div class="loading center">
<span>Loading...</span>
</div>
</div>
</template>
<style lang="scss" scoped>
@keyframes a1 {
to {
transform: rotate(360deg);
}
}
@keyframes a2 {
to {
transform: rotate(-360deg);
}
}
.content {
background-color: #34495e;
font-family: 'Comic Sans MS', sans-serif;
}
.loading {
width: 180px;
height: 180px;
box-sizing: border-box;
border-radius: 50%;
border-top: 10px solid #ff6d28;
position: relative;
animation: a1 2s linear infinite;
> span {
color: #fff;
animation: a2 2s linear infinite;
}
&::before,
&::after {
content: '';
width: 180px;
height: 180px;
box-sizing: border-box;
border-radius: 50%;
position: absolute;
left: 0;
top: -10px;
}
&::before {
border-top: 10px solid #0096ff;
transform: rotate(120deg);
}
&::after {
border-top: 10px solid #ff4a4a;
transform: rotate(240deg);
}
}
</style>