Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8284113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T10:58:39+00:00 2026-06-08T10:58:39+00:00

I am looking for a bouncing effect of a bar. If you have noticed

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T10:58:40+00:00Added an answer on June 8, 2026 at 10:58 am

    You can try Fantastic Bouncy Effect using jQuery/JavaScript

    enter image description here

    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

    <table>
    <tr>
        <td><div id="bouncy1">Click here to bounce. Direction: Up</div></td>
        <td><div id="bouncy2">Click here to bounce. Direction: Left</div></td>
    </tr>
    <tr>
        <td><div id="bouncy3">Click here to bounce. Direction: Right</div></td>
        <td><div id="bouncy4">Click here to bounce. Direction: Down</div></td>
    </tr>
    </table>
    <br/>
    <input id="bounceAll" type="button" value="Click to Bounce All!"/>
    

    CSS

    div {
        padding:5px;
        width:150px;
        height:100px;
        text-align:center;
    }
    #bouncy1 {
        background-color:#FFEE88;
    }
    #bouncy2 {
        background-color:#EE88FF;
    }
    #bouncy3 {
        background-color:#EE8888;
    }
    #bouncy4 {
        background-color:#88EEFF;
    }
    

    JavaScript

    $(function(){
    
        //Add bounce effect on Click of the DIV
        $('#bouncy1').click(function () {
              $(this).effect("bounce", { times:5 }, 300);
        });
    
        $('#bouncy2').click(function () {
              $(this).effect("bounce", { direction:'left', times:5 }, 300);
        });
    
        $('#bouncy3').click(function () {
              $(this).effect("bounce", { direction:'right', times:5 }, 300);
        });
    
        $('#bouncy4').click(function () {
              $(this).effect("bounce", { direction:'down', times:5 }, 300);
        });
    
        //Bounce all DIVs on click of button
        $("#bounceAll").click(function(){
            $("div").click();
        });
    });
    

    Demo at Fantastic Bouncy Effect using jQuery/JavaScript

    For your JavaScript

    $(document).ready(function(){
        $("div").click();
    });
    

    In your JavaScript

    $(function () {
        function bounceDiv(){
            $("#six").effect("bounce", { times:3, distance:20 }, 400);
        }
        setInterval('bounceDiv()', 1000);
    });
    

    You forgot the 's! 🙁

    Source: http://viralpatel.net/blogs/jquery-bounce-effect-bounce-html-js/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Looking at Facebook I have noticed that images vary in size from 100x100 to
Looking at some assembly code for x86_64 on my Mac, I see the following
Looking to do a bit of refactoring... Using NHibernate I have this query currently
Looking for a perl one-liner what will find all words with the next pattern:
Looking for best advice on how to do this: I have an insert like
Looking for a general case solution to determine if any jquery dialog (there are
Looking to match any rows in a MySQL database where VectorId starts with 'TS'
I have an application that is very connection-based, i.e. multiple inputs/outputs. The UI concept
ImageGrab from PIL would have been ideal. I'm looking for similar functionality, specifically the
First post here, I have tried searching but couldn't find what I'm looking for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.