JSFiddle - React, Tailwind, and code Playground

by mmalex

HTML

<div id="outerContainer">
  <div id="container">
    <div class="circle" style="animation-delay: -3s"></div>
    <div class="circle" style="animation-delay: -2s"></div>
    <div class="circle" style="animation-delay: -1s"></div>
    <div class="circle" style="animation-delay: 0s"></div>
  </div>
</div>

CSS

#container {
  width: 600px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.circle {
  border-radius: 50%;
  background-color: deepskyblue;
  width: 150px;
  height: 150px;
  position: absolute;
  opacity: 0;
}

.circle {
  border-radius: 50%;
  background-color: deepskyblue;
  width: 150px;
  height: 150px;
  position: absolute;
  opacity: 0;
  animation: scaleIn 4s infinite cubic-bezier(.36, .11, .89, .32);
}

.item {
  z-index: 100;
  padding: 5px;
}

.item img {
  width: 150px;
}

@keyframes scaleIn {
  from {
    transform: scale3d(0.05, 0.05, 0.05) rotateX(45deg) rotateY(45deg);
    opacity: .5;
  }

  to {
    transform: scale3d(2.5, 2.5, 2.5) rotateX(45deg) rotateY(45deg);
    opacity: 0;
  }
}