JSFiddle - React, Tailwind, and code Playground

by Lalji Tadhani

HTML

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
  </head>
  <body>
    <div class="tc-play-animated-loading">
		<img src="https://s27138.pcdn.co/wp-content/uploads/2018/09/favIcon.png" alt="play" class="tc-play-animated">
	</div>
  </body>
</html>

CSS

div.tc-play-animated-loading {
    position: absolute;
    width: 100px;
    height: 100px;
    margin-left: -50px;
    margin-top: -50px;
    left: 50%;
    top: 50%;
	transform: translate(-50%,-50% );
}

img.tc-play-animated {
    -webkit-animation: play-filter-animation 8s linear infinite;
    -moz-animation: play-filter-animation 8s linear infinite;
    -o-animation: play-filter-animation 8s linear infinite;
    -ms-animation: play-filter-animation 8s linear infinite;
     animation: play-filter-animation 8s linear infinite; 
}

@-webkit-keyframes play-filter-animation{
    0%{
       -webkit-transform: rotate(0deg)
    }
    100%{
        -webkit-transform: rotate(360deg)
    }
}
@keyframes play-filter-animation{
      
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }

}