JSFiddle - React, Tailwind, and code Playground
by Сергей Тарасевич
HTML
<div class="active_f">
<div class="active1"></div>
<div class="active2"></div>
<div class="active1"></div>
<div class="active2"></div>
<div class="active1"></div>
</div>
CSS
.active_f {
display: block;
font-size: 0;
margin: 0 auto;
text-align: center;
width: 80px;
}
.active1 {
width: 10px;
height: 10px;
background: #FFC200;
border-radius: 10px;
margin: 0 1px;
position: relative;
display: inline-block;
vertical-align: middle;
-webkit-animation-name: example1;
-webkit-animation-duration: 1s;
-webkit-animation-iteration-count: infinite;
animation-name: example1;
animation-duration: 1s;
animation-iteration-count: infinite;
}
.active2 {
width: 15px;
height: 15px;
background: #FFC200;
border-radius: 10px;
margin: 0 1px;
position: relative;
display: inline-block;
vertical-align: middle;
-webkit-animation-name: example2;
-webkit-animation-duration: 1s;
-webkit-animation-iteration-count: infinite;
animation-name: example2;
animation-duration: 1s;
animation-iteration-count: infinite;
}
@-webkit-keyframes example1 {
0% {
width: 10px;
height: 10px;
}
25% {
width: 15px;
height: 15px;
}
50% {
width: 10px;
height: 10px;
}
75% {
width: 15px;
height: 15px;
}
100% {
width: 10px;
height: 10px;
}
}
@keyframes example1 {
0% {
width: 10px;
height: 10px;
}
25% {
width: 15px;
height: 15px;
}
50% {
width: 10px;
height: 10px;
}
75% {
width: 15px;
height: 15px;
}
100% {
width: 10px;
height: 10px;
}
}
@-webkit-keyframes example2 {
0% {
width: 15px;
height: 15px;
}
25% {
width: 10px;
height: 10px;
}
50% {
width: 15px;
height: 15px;
}
75% {
width: 10px;
height: 10px;
}
100% {
width: 15px;
height: 15px;
}
}
@keyframes example2 {
0% {
width: 15px;
height: 15px;
...