img {
  width: 300px;
  transition: transform 1s ease-in-out 0s;
}
img:hover {
  transform: rotate(5deg);
}