JSFiddle - React, Tailwind, and code Playground

by Vanya Reshetnikov

HTML

<body>
	<div id="base">
	  <div id="e1" class="ecl"></div>
	  <div id="e2" class="ecl"></div>
	  <div class="r" id="r1"></div>
	  <div class="r" id="r2"></div>
	  <div class="r" id="r3"></div>
	  <div class="r" id="r4"></div>
	  <div class="r" id="r5"></div>
	</div>
  </body>

CSS

#base{
  background: yellow;
  height: 200px;
  width: 200px;
  margin: auto;
  border-radius: 20px;
  position: relative;
  border: 4px solid orange;
  box-shadow: -3px 3px 10px orange;
}
#e1{
  margin-left: 60px;
}
#e2{
  margin-left: 140px;
}
.ecl{
  position: absolute;
  background: white;
  width: 20px;
  height: 20px;
  margin-top: 40px;
  border: 4px solid orange;
  border-radius: 4px;
  -webkit-animation: eclanim 6s linear infinite;
  -animation: eclanim 6s linear infinite;
  animation: eclanim 6s linear infinite;
  -moz-animation: eclanim 6s linear infinite;
  -o-animation: eclanim 6s linear infinite;
  -ms-animation: eclanim 6s linear infinite;
  box-shadow: -3px 3px 10px orange;
}
.r{
  background: White;
  border: 4px solid orange;
  height: 20px;
  width: 20px;
  border-radius: 7px;
  -webkit-animation: ranim 4s linear infinite;
   animation: ranim 4s linear infinite;
  -animation: ranim 4s linear infinite;
  -moz-animation: ranim 4s linear infinite;
  -o-animation: ranim 4s linear infinite;
  -ms-animation: ranim 4s linear infinite;
  display: inline-block;
  position: absolute;
  box-shadow: 0px 0px 10px orange;
}
@keyframes eclanim{
  0%{
	height:20px;
	margin-top: 40px;
  }
  47%{
	height: 20px;
	margin-top: 40px;
  }
  50%{
	height: 0.5px;
	margin-top: 52px;
  }
  53%{
	height: 20px;
	margin-top: 40px;
  }
  100%{
	height: 20px;
	margin-top: 40px;
  }
}
@keyframes ranim{
  0%{
	-webkit-transform: rotate(0deg);
	-transform: rotate(0deg);
  transform: rotate(0deg);
	-moz-transform: rotate(0deg);
	-o-transform: rotate(0deg);
	-ms-transform: rotate(0deg);
  }
  100%{
	-webkit-transform: rotate(360deg);
	-transform: rotate(360deg);
  transform: rotate(360deg);
	-moz-transform: rotate(360deg);
	-o-transform: rotate(360deg);
	-ms-transform: rotate(360deg);
  }
}
#r1{
  margin-top: 115px;
  margin-left: 37px;
  z-index: 1;
}
#r2{
  margin-top: 120px;
  margin-left: 59px;
  z-index:2;
}
#r3{
  margin-top: 125px;
  margin-left: 81px;
  z-index: 3;
}
#r4{
...