3 ms·
Yep, because every time you re-initiate the animation (by clicking a button), it starts an animation from the current position to the wall and sets it to get th
by duskwuff 14y ago
Yep, because every time you re-initiate the animation (by clicking a button), it starts an animation from the current position to the wall and sets it to get there in 2 seconds. So the speed is dependent on the distance from the target.
Given how easy it is to duplicate the same effect in Javascript, I see no reason to use this hack.