Line 56: | Line 56: | ||
// change 12 to alter damping higher is slower | // change 12 to alter damping higher is slower | ||
xp += (mouseX - xp) / 2; | xp += (mouseX - xp) / 2; | ||
− | + | rider.style.left = xp + "px"; | |
− | + | ||
}, 30); | }, 30); | ||
Revision as of 00:21, 31 October 2017