jQuery mousemove project

Note: This post was originally published on iamianwright.com it’s been moved here for archival purposes. I set myself a little project yesterday to make an image where the head follows the cursor around the screen. I thought it would be an interesting way to learn jQuery. I took nine images of me and then I put together a simple test. The image was set to absolute positioning, 200px from top and 200px from the left. This allows me to set up a series of if statements that find out if the cursor was in a specific sector. ...

January 6, 2012