Bouncing a ball.
Bouncing a ball.
Hello !,
I am a beginner and am learning JavaScript.
Jquery I find very nice, but I just have problems with the braces and parentheses! ... :-D
My problem: in my web page, I have a ball, I want to move to a point in my page jumping like a kangaroo or a rabbit.
I found the movement:
- $("#titre").delay(1000)
.animate({left:'+=25',top:'-130px'},1000)
.animate({left:'+=25',top:'-100px'},1000);
But I will not repeat this code until the desired position.
How do I do ?
thanks,
Diana
I Love JQuery !