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

  • Home
  • SEARCH
  • 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 540877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:17:08+00:00 2026-05-13T10:17:08+00:00

I was animating an a element in jQuery using jQuery 1.3.2 and jQuery color

  • 0

I was animating an a element in jQuery using jQuery 1.3.2 and jQuery color plugin. I was animating the ‘color’ and ‘backgroundColor’ properties at the same time. In IE8 and FF it worked just fine. Chrome animated the mousehover color and then stopped. The background stayed the same and the mouseout did not undo the effect as it should have.

Chrome’s developer tools said something about something being undefined. I know that I’m being somewhat vague here, perhaps this is a known issue?

EDIT – Code(, finally!):

<script>
  $(document).ready(function(event){
    $(".nav a").hover(function(event){
      $(this).animate({"color":"#FFFFFF", "backgroundColor":"#3AB7FF"}, 900);
    },function(event){
      $(this).animate({"color":"#98DCFF","backgroundColor":"#FFFFFF"}, 900);
    });
  });
</script>

EDIT:

@Bernhard Hofmann – What do you mean “issues with the properties you’ve chosen”? Please elaborate.

  • 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-13T10:17:09+00:00Added an answer on May 13, 2026 at 10:17 am

    It would seem that Chrome has a few issues with the properties you’ve chosen. I managed to get the animation working using mouse enter and leave events in Chrome. Here’s the script and mark-up for those wanting to fiddle and have a go as well.

    <html>
        <head>
            <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
            <script type="text/javascript">
                $(function(event){
                    $(".nav a").
                    mouseenter(function(){$(this).animate({fontSize:"2em"}, 900);}).
                    mouseleave(function(){$(this).animate({fontSize:"1em"}, 900);});
                /*
                    $(".nav a").hover(function(){
                        $(this).animate({"color":"#FFFFFF", "backgroundColor":"#3AB7FF"}, 900);
                    },function(){
                        $(this).animate({"color":"#98DCFF","backgroundColor":"#FFFFFF"}, 900);
                    });
                */
                });
            </script>
        </head>
        <body>
            <div class="nav" style="color:#000;background:#cfc;padding:2em 2em 2em 2em;margin:2em 2em 2em 2em;">
                <a href="http://stackoverflow.com/questions/2010576/jquery-animation-issue-in-chrome" id="a1">StackOverflow</a>
            </div>
        </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm animating a UIView's frame property using a CAKeyframeAnimation on the view's CALayer and
I am using slideDown animation to show some divs in a newly added table
I have an animation and I want it to play it just only once.
Is there an animation format supported in Qt (using v4.4) that will support a
What is a good way to perform animation using .NET? I would prefer not
Is there a preferred way to handle animation when using Flex -- For instance,
I work at an animation studio that does several productions in Flash. Probably one
I need to knock out a quick animation in C#/Windows Forms for a Halloween
What are ways to draw animations in C++? GDI+? OpenGL? Would you recommend a
I need to get some AVI animations for use with the Borland VCL TAnimate

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.