I would like to add some cool UI with rotating background on mouse move, like on icloud.com, for now I got the code below
$("#VIEW").mousemove(function(e){ var pageCoords = e.pageX + e.pageY; var max = $(document).width() + $(document).height(); var p = (pageCoords/max)*30; $('#ROTATE').css({ 'transform':'rotate(' + p + 'deg)'}); }); problem is, this is realtime rotate, I like to make it slow, add some delay