Простая и классная анимация соединяющегося загрузчика с помощью HTML/CSS
HTML код
<div class="container">
<div class="Loaderdot"></div>
<div class="Loaderdot"></div>
<div class="Loaderdot"></div>
<div class="Loaderdot"></div>
</div>
Css с анимацией
.container {
display: flex;
height: 100vh;
width: 100%;
align-items: center;
justify-content: center;
background-color: #fff;
}
.container .Loaderdot {
position: relative;
width: 1em;
height: 1em;
margin: 0.8em;
border-radius: 50%;
}
.container .Loaderdot::before {
position: absolute;
content: '';
width: 100%;
height: 100%;
background: inherit;
border-radius: inherit;
animation: wave 2s ease-out infinite;
}
.container .Loaderdot:nth-child(1) {
background: #880808;
}
.container .Loaderdot:nth-child(1)::before {
animation-delay: 0.2s;
}
.container .Loaderdot:nth-child(2) {
background: #EE4B2B;
}
.container .Loaderdot:nth-child(2)::before {
animation-delay: 0.4s;
}
.container .Loaderdot:nth-child(3) {
background: #FA5F55;
}
.container .Loaderdot:nth-child(3)::before {
animation-delay: 0.6s;
}
.container .Loaderdot:nth-child(4) {
background: #FAA0A0;
}
.container .Loaderdot:nth-child(4)::before {
animation-delay: 0.8s;
}
.container .Loaderdot:nth-child(5) {
background: #000080;
}
.container .Loaderdot:nth-child(5)::before {
animation-delay: 1s;
}
@keyframes wave {
50%,
75% {
transform: scale(2.5);
}
80%,
100% {
opacity: 0;
}
}
Вот и все, надеюсь, вам понравится :). Пожалуйста, ставьте лайк и комментируйте