JSFiddle - React, Tailwind, and code Playground

by Kirubel Girma

HTML

<div class="backg">
<div class="lgo_container">
  <img src="https://www.score-scan.com/images/RotaryLoader.png" alt="" class="image_logo">
  <div class="lgcont">Generating Score</div>
  </div>
  </div>

CSS

body{
  margin: 0;
  font-family: arial;
}

.backg {
  background-color: #1426a5;
  position: absolute;
  height: 100%;
  width: 100%;
  align-items: center;
}

.lgo_container {
  height: 5em;
  width: 5em;
  margin: auto;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  position: absolute;
  justify-content: center;
  align-items: center;
}

.image_logo {
  object-fit: fit;
  align-self: center;
  height: 3em;
  width: 3em;
  animation: load_anim cubic-bezier(0.99, 0.02, 0.42, 1.05) infinite;
  animation-duration: 3s;
  display: block;
  position: relative;
}

.lgcont {
  width: 100%;
  font-size: .7em;
  text-align: center;
  color: white;
  padding-top: 2em;
}

@keyframes load_anim {
  0% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}