Tom Bowers posted this on Stack Overflow.
$('#landing-content').mousemove(function(e){ var amountMovedX = (e.pageX * -1 / 6); var amountMovedY = (e.pageY * -1 / 6); $(this).css('background-position', amountMovedX + 'px ' + amountMovedY + 'px'); });