I\'m trying to get an image (a plus symbol) to rotate 45 degrees to create a cross symbol. I have so far managed to achieve this using the code below but its working on hove
Voila!
div { background-color: red; color: white; font-weight: bold; width: 48px; height: 48px; transform: rotate(360deg); transition: transform 0.5s; } div:active { transform: rotate(0deg); transition: 0s; }