This snippet is more than 5 years old and may no longer be best practise, test before use.

Clockwise and anticlockwise spin in CSS keyframes


Using keyframes you can spin an element with this handy CSS animation, go clockwise/anticlockwise or mash it up and change those values to suit your project.

Code: