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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:40:24+00:00 2026-06-09T12:40:24+00:00

Possible Duplicate: jquery mouseleave issue when moving too slow There seems to be a

  • 0

Possible Duplicate:
jquery mouseleave issue when moving too slow

There seems to be a delay between mouseover() and mouseleave().
Looking at my code there is a 200ms/1ms transition.
I just dont understand why there is lag between the two animations.

Using i7 core with latest version FF(14.0.1)…

Link to dev site:
http://blox.comze.com/
(CSS currently only stable in IE9/chrome/FF)

Thoughts?

<div id="header">
    <div id="headerInner">
        <div id="power" class="menuitem">
            <img style="height:30px;" src="http://{url root=$context.root}static/img/leaf4.png" />
            <a class="menutext">&nbsp;POWER</a>
        </div>
        <div id="services" class="menuitem">
            <img style="height:30px;" src="http://{url root=$context.root}static/img/wrenchscrew.png" />
            <a class="menutext">&nbsp;SERVICES</a>
        </div>
        <div id="cashback" class="menuitem">
            <img style="height:30px;" src="http://{url root=$context.root}static/img/dollarsign.png" />
            <a class="menutext">&nbsp;CASHBACK</a>
        </div>
        <div id="schedule" class="menuitem">
            <img style="height:30px;" src="http://{url root=$context.root}static/img/calender.png" />
            <a class="menutext">&nbsp;SCHEDULE</a>
        </div>
    </div>    

</div>

<script>
$("#power,#services,#cashback,#schedule").mouseover(function() {
    $(this).animate({ backgroundColor: "#333"}, 200 );
}).mouseleave(function() { 
    $(this).animate({ backgroundColor: "#000"}, 1);
});
</script>
  • 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-09T12:40:27+00:00Added an answer on June 9, 2026 at 12:40 pm

    First off you should be using the document ready because it just makes everything run smoother. Try the following.

    $(document).ready(function() {
        $("#power,#services,#cashback,#schedule").hover(function() {
            $(this).animate({ backgroundColor: "#333"}, 200 );
        }, function() {
            $(this).animate({ backgroundColor: "#000"}, 1);
        });
    });
    

    Also, the mouseout time is really quick, that may be your problem.

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

Sidebar

Related Questions

Possible Duplicate: jQuery delay between animations I have created two functions: One that animates
Possible Duplicate: jQuery 1.7 - Turning live() into on() Just switching my code from
Possible Duplicate: jQuery: text() vs html()? What's the difference between text and html() in
Possible Duplicate: jquery .bind() and/or .ready() not working Why is there a difference in
Possible Duplicate: jQuery $(this) vs this This code in this video Tutorial in a
Possible Duplicate: jQuery ajax() vs get()/post() what is the difference between jQuery ajax() and
Possible Duplicate: Count elements with jQuery hi there, i was considering, using jquery, var
Possible Duplicate: jquery ajax call taking too long or something for some reason this
Possible Duplicate: jQuery $(this) vs this What is the difference between this and $(this)?
Possible Duplicate: jQuery selecter whats difference between jQuery(“element”) and $(“element”)? Just a little curious..

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.