JSFiddle - React, Tailwind, and code Playground

by c_vilander

HTML

<div class="wrapper">
<div class="circleone"></div>
<div class="circletwo"></div>    
<div class="circlethree"></div>
<div class="circlefour"></div>    
</div>

CSS

.wrapper {
    position: absolute;
    top: 50px;
    left: 100px;
    width: 500px;
    height: 200px;
    -webkit-transform: translate3d(0, 0, 0);
}

.circleone {
    float: left;
    height: 25px;
    width: 25px;
    margin: 5px;
    border-radius: 20px;
    border-radius: 20px;
    background-color: #e3e3e3;
    -webkit-animation: dot 2.0s infinite;
    -webkit-animation-delay: 0.0s;
}

.circletwo {
    float: left;
    height: 25px;
    width: 25px;
    margin: 5px;
    border-radius: 20px;
    border-radius: 20px;
    background-color: #e3e3e3;
    -webkit-animation: dot 2.0s infinite;
    -webkit-animation-delay: 0.2s;
}

.circlethree {
    float: left;
    height: 25px;
    width: 25px;
    margin: 5px;
    border-radius: 20px;
    border-radius: 20px;
    background-color: #e3e3e3;
    -webkit-animation: dot 2.0s infinite;
    -webkit-animation-delay: 0.4s;
}

.circlefour {
    float: left;
    height: 25px;
    width: 25px;
    margin: 5px;
    border-radius: 20px;
    border-radius: 20px;
    background-color: #e3e3e3;
    -webkit-animation: dot 2.0s infinite;
    -webkit-animation-delay: 0.6s;
}

@-webkit-keyframes dot {
      0% { background-color: #e3e3e3; }
     25% { background-color: #e3e3e3; }
     50% { background-color: #000000; }
     75% { background-color: #000000; }
    100% { background-color: #e3e3e3; }
}