Skip to content


Image rotate on hover

Creates a rotate effect for the image on hover.

<figure class="hover-rotate">
  <img src=""/>
.hover-rotate {
  overflow: hidden;
  margin: 8px;
  min-width: 240px;
  max-width: 320px;
  width: 100%;

.hover-rotate img {
  transition: all 0.3s;
  box-sizing: border-box;
  max-width: 100%;

.hover-rotate:hover img {
  transform: scale(1.3) rotate(5deg);

More like this

Start typing a keyphrase to see matching snippets.