Sample to move 1 step:
function move(steps) {
$("#lamb").css({ 'right': steps + 'px', 'transition': 'all 1s' });
move(100);
becomes
move(500);
I don't know haha, do they even want to code in the first place.
Doesn't even consider requestAnimationFrame or proportional scale. Also I'm starting to realize jQuery is pretty big even the min version especially on slow networks.
Sample to move 1 step:
function move(steps) {
}move(100);
becomes
move(500);
I don't know haha, do they even want to code in the first place.
Doesn't even consider requestAnimationFrame or proportional scale. Also I'm starting to realize jQuery is pretty big even the min version especially on slow networks.