JSFiddle - React, Tailwind, and code Playground

HTML

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Document</title>
</head>
<body>
  <div class="washingMachine">
    <img src="https://brain-images-ssl.cdn.dixons.com/7/2/10155027/u_10155027.jpg?_ga=2.209427474.147555083.1563267955-1186068493.1563267955">
  </div>
</body>
</html>

CSS

.washingMachine {
  animation-name: spin;
  animation-duration: 5000ms;
  animation-iteration-count: infinite;
  animation-timing-function: linear; 
  left: 50%;
  top: 50%;
  position: absolute;
}

.washingMachine img {
  width: 200px;
  height: 200px;
}

@keyframes spin {
  from {
    transform:rotate(0deg);
  }
  to {
    transform:rotate(360deg);
  }
}