Line 54: | Line 54: | ||
} | } | ||
} | } | ||
− | + | ||
// change 12 to alter damping higher is slower | // change 12 to alter damping higher is slower | ||
xp += (mouseX - xp) / 12; | xp += (mouseX - xp) / 12; | ||
− | + | ||
rider.css({left:xp}); | rider.css({left:xp}); | ||
+ | console.log(rider.css.left) | ||
}, 30); | }, 30); | ||
Revision as of 00:29, 31 October 2017