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 6954103
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:33:46+00:00 2026-05-27T14:33:46+00:00

I am unable to get my icon to keep bouncing up and down up

  • 0

I am unable to get my icon to keep bouncing up and down up and down on hover, but I can only manage to get it to do it one full cycle per hover.

Here is the page. The element/icon is the “business” image. http://fdtcincinnati.com/landing-page

How is this effect (or a similar blink effect) achieved?

Thanks!

EDIT

Here is the Jquery/JS:

$(document).ready(function() {

    var timeout = '';
    var intervalId = null;
    var bouncing = false;

    $("a#business").hover(function() {

        bouncing = true;
        bounce($(this), bouncing, 160, 170);

    }, function() {

        bouncing = false;
        bounce($(this), bouncing, 160, 170);

    });

});

function bounce(ob, bouncing, val1, val2) {

    if (! bouncing) {

        ob.animate({ "top": val1 + "px" }, 400);

    } else {

        ob.animate({ "top": val1 + "px" }, 400).animate({ "top": val2 + "px" }, 400);

        setTimeout(bounce(ob, bouncing, val1, val2), 800);

    }

}

Here is the HTML:

    <body id="landing_page">

    <div id="fp_wrapper">

        <h1 id="lp_logo"><a href="/">First Discount Travel Cincinnati</a></h1>

        <a id="business" href="">Business</a>

        <a id="leisure" href="">Business</a>

        <p id="below">Click one of the couples to continue!</p>

    </div><!-- end fp_wrapper -->

</body>
  • 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-05-27T14:33:47+00:00Added an answer on May 27, 2026 at 2:33 pm

    Perhaps you can make use of the jQuery UI bounce effect. This simplifies the amount of code you need. I attached a data object to the business image so that you don’t need to rely on global variables. Then you use the callback of the bounce effect to loop the animation.

    http://jsfiddle.net/RkNV2/2/

    $('img').hover( 
        function() { $(this).data('bounce', true); bounce($(this));}, 
        function() { $(this).data('bounce', false);
    });
    
    function bounce($elem) {
        $elem.effect('bounce', { times: 1, distance: 10 }, 500, function() {
            if ($(this).data('bounce')) bounce($elem);
            else $elem.stop();
        });
    }
    

    The bounce effect gives you control over # of bounces, distance of bounces, direction and mode.

    http://docs.jquery.com/UI/Effects/Bounce

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

Sidebar

Related Questions

I'm unable to get this jquery statement to work on page load but it
I'm able to get cells to format as Dates, but I've been unable to
I am unable to get the correct title for this, please change the title
I am unable to get a highcharts plugin to render a chart in a
I have a seemingly simple problem though i am unable to get my head
I have the following code and I am still unable to get Hibernate to
I renamed the class classBattle to Game and not I get Unable to load
Using MongoDB C# driver ( http://github.com/samus/mongodb-csharp ), seems that I'm unable to get the
I get a crazy error and I am unable to see why it happens.
Why do I get the error: Unable to create a constant value of type

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.