Hi,
Just reading great book "Secrets of JavaScript Ninja". While learning closures. I thought of creating an animation. Please see it here
animation.
I have two questions. Is there any way I can find out when ball reach the right end so that I can start from left again?
How to make it really smooth. Right now the transition is not smooth.
Let me know if I am doing something wrong.