JSFiddle - React, Tailwind, and code Playground

by David Nabb

HTML

<div class="loader-background">
  <img src="https://www.seeva.com.au/wp-content/uploads/2016/12/Seeva-Master-Favicon.png" class="loader"/>
</div>

CSS

.loader-background {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 99999999;
    background-color: #eef0eb;
}
.loader {
  position: absolute;
  height: 50px;
  width: auto;
  top: calc(50% - 25px);
  left: calc(50% - 25px);
    -webkit-animation-name: loader-animate;
    -webkit-animation-duration: 5s;
    -webkit-animation-iteration-count: infinite;
    animation-name: loader-animate;
    animation-duration: 5s;
    animation-iteration-count: infinite;
}
@-webkit-keyframes loader-animate {
  25% {
    transform: rotatey(360deg);
  }
  50% {
    transform: rotatex(360deg);
  }
  75% {
    transform: rotatey(0deg);
  }
  100% {
    transform: rotatex(0deg);
  }
}@keyframes loader-animate {
  25% {
    transform: rotatey(360deg);
  }
  50% {
    transform: rotatex(360deg);
  }
  75% {
    transform: rotatey(0deg);
  }
  100% {
    transform: rotatex(0deg);
  }
}