-
-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathCLoading.vue
116 lines (113 loc) · 2.19 KB
/
CLoading.vue
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<template>
<div class="loading_container">
<section class="animate-pulse">
<span class="loader-17" />
</section>
<!-- <section class="animate-pulse">loading<span class="loader-71" /></section> -->
</div>
</template>
<style scoped>
@import url('https://fonts.googleapis.com/css2?family=Updock&display=swap');
.loading_container {
padding: 1rem;
width: 100vw;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
position: fixed;
z-index: 999;
top: 0;
left: 0;
background: #f6f6ff;
}
section {
width: 20rem;
height: 20rem;
position: relative;
display: flex;
align-items: center;
justify-content: center;
color: #ccc;
cursor: pointer;
}
section:nth-child(1):before{
content: "e";
font-family: 'Updock', cursive;
font-size: 15rem;
position: absolute;
top: -10%;
height: 20%;
color: orangered;
}
/* section:nth-child(2){
flex-direction: column;
gap: 2rem;
} */
.loader-17 {
width: 17rem;
height: 17rem;
border-radius: 50%;
display: inline-block;
border-top: 0.5rem solid orangered;
border-right: 3px solid transparent;
-webkit-animation: rotation 1s linear infinite;
animation: rotation 1s linear infinite;
}
@-webkit-keyframes rotation {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
@keyframes rotation {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
/* .loader-71 {
width: 100%;
height: 4.8px;
display: inline-block;
position: relative;
background: rgba(255, 255, 255, 0.15);
overflow: hidden;
}
.loader-71::after {
content: "";
width: 192px;
height: 4.8px;
background: orangered;
position: absolute;
top: 0;
left: 0;
-webkit-animation: animloader71 2s linear infinite;
animation: animloader71 2s linear infinite;
}
@-webkit-keyframes animloader71 {
0% {
left: 0;
transform: translateX(-100%);
}
100% {
left: 100%;
transform: translateX(0%);
}
}
@keyframes animloader71 {
0% {
left: 0;
transform: translateX(-100%);
}
100% {
left: 100%;
transform: translateX(0%);
}
} */
</style>