
HTML & 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
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
<style>
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
font-family: 'Poppins', sans-serif;
background: black;
}
.box{
position: relative;
}
.innerbox1, .innerbox2, .innerbox3 {
position: absolute;
top: 0;
width: 130px;
height: 38px;
transform: translate(-5px, -5px);
border-radius: 8px;
}
.innerbox1{
background: #a770ef;
box-shadow: 0 0 50px #a770efa5;
animation: anim 2s linear infinite;
animation-delay: 1.5s;
position: relative;
}
.innerbox2{
background: #cf8bf36b;
animation: anim 2s linear infinite;
animation-delay: 1s;
}
.innerbox3{
background: #a770ef82;
border-radius: 8px;
animation: anim 2s ease-in infinite;
}
@keyframes anim {
0%{
transform: translate(-5px, -5px);
}
20%{
transform: translate(5px, -5px);
}
50%{
transform: translate(5px, 5px);
}
80%{
transform: translate(-5px, 5px);
}
100%{
transform: translate(-5px, -5px);
}
}
.text{
margin-top: 20px;
text-align: center;
color: white;
}
.text span{
animation: animDots 1s linear infinite;
}
.text span:nth-child(1){
animation-delay: 0.3s;
}
.text span:nth-child(2){
animation-delay: 0.6s;
}
.text span:nth-child(3){
animation-delay: 0.8s;
}
@keyframes animDots {
0%{
opacity: 0;
}
100%{
opacity: 1;
}
}
</style>
<div class="container">
<div class="box">
<div class="innerbox1"></div>
<div class="innerbox2"></div>
<div class="innerbox3"></div>
</div>
<p class="text">Loading<span>.</span><span>.</span><span>.</span></p>
</div>