Today I thought about creating a different button... So I thought: if I get an image that rotates 180 degrees when I click it and rotates more 180 degrees again and again again... (every time I click). After lots of tries, I don't know how can I do it. This was what I thought and made:
HTML:
<img id="rotater" onclick="rotate()" src="anyImage.png"/>
CSS:
img{border: 0.0625em solid black;border-radius: 3.75em;}
#rotate{ animation: rotation 3s 0.5 forwards;}
@keyframes rotation{50% {transform: rotate(180deg);}}
JavaScript:
function rotate(){x=document.getElementById('rotater');x.id = 'rotate';}
It's not important, just an idea...