Alan Simpson

Alan Simpson

Code Quickies

More Code Quickies

Crazy Spinny Thing

Put your mouse pointer in the middle of the picture. Yes, I know it's corn-ball. But the source code shows how to apply animations when the mouse pointer hovers over, and leaves, an elements, without using any JavaScript code.'


When you view the source code, you'll see the regular state and :hover states have opposite transform: settings.

Back to Code Quickies.