.image { overflow: hidden; transition-duration: 0.8s; transition-property: transform; } .image:hover { transform: rotate(360deg); -webkit-transform: rotate(360deg); }