Hello,
I am looking for examples of how to do rotate effect on a click event, on a font-awesome icon: <i class="fa fa-cog"></i>
I am starting to code using AngularJS framework, and my knowledge of JavaScript is still developing. Seeing examples of something already existing, helps me to understand with less frustration how things work.
The effect is seeing on YouTube's player, the little setting gear you click to turn annotations on/off, and auto-play. I think it rotates 45 deg clockwise, and then back to position 0 when clicked again.
This is not homework, nor work related. I am just curious to learn how this effect is done.
I appreciate your help and advice.
Best,
Alejandro.