Line 56: | Line 56: | ||
// 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. | + | rider.style.left = xp; |
}, 30); | }, 30); | ||
Line 75: | Line 75: | ||
#rider { | #rider { | ||
background-clip:content-box; | background-clip:content-box; | ||
− | position: | + | position: relative; |
padding: 0px; | padding: 0px; | ||
Revision as of 00:10, 31 October 2017