1button{
2 animation: rotate360 1.2s linear infinite; /* animation set */
3 animation-play-state: paused; /* put paused */
4}
5button:hover{
6 animation-play-state: running; /* trigger on hover */
7}
8@keyframes rotate360 { /* keyframes of animation */
9 to { transform: rotate(360deg); }
10}