div {
  margin-top: 10em;
  display: flex;
  justify-content: center;
  align-items: center;
}

img {
  animation-name: spin;
  animation-duration: 2000ms;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  max-width: 40%;
  max-height: 40%;
}

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