I am looking for a bouncing effect of a bar.
If you have noticed in mac, the dock where all the applications are lined up. The minute you click on any of the application, the icon starts bouncing. I am looking for similar effect.
The bar needs to bounce 3 times and then stop for a second or two and again bounce 3 times.
Here is what I am doing currently which didn’t help
$(function () {
function bounceDiv(){
$("#six").effect("bounce", { times:3, distance:20 }, 400);
}
setInterval(bounceDiv,1000);
});
Thanx in Advance.
You can try Fantastic Bouncy Effect using jQuery/JavaScript
Our Goal will be to create a HTML page that has 4 boxes (DIVs). Clicking each of these boxes will bounce them is a particular direction. We can control the direction as well as the speed of bouncing element with arguments to the method of jQuery.
HTML
CSS
JavaScript
Demo at Fantastic Bouncy Effect using jQuery/JavaScript
For your JavaScript
In your JavaScript
You forgot the
's! 🙁Source: http://viralpatel.net/blogs/jquery-bounce-effect-bounce-html-js/