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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:43:00+00:00 2026-05-22T12:43:00+00:00

After just now spending too much time debugging why my jQuery animate() calls stopped

  • 0

After just now spending too much time debugging why my jQuery animate() calls stopped working correctly, I realized my problem was the properties in the animate() call have to be in a specific order. So the following will not work properly:

$('div.example').animate({left: 50, top: 100, opacity: 1});

What will happen is the div.example will fade in (if it wasn’t already) and will just appear at position left:50, top:100, it will not animate. To get this to work as expected, you have to reorder:

$('div.example').animate({opacity: 1, left: 50, top: 100});

I tested this in FF4 and Chrome. This surprised me as I wasn’t even aware that Javascript guaranteed order of properties in objects and jQuery makes no mention of this requirement in their docs. So my question is basically, am I doing something wrong? Is this expected? Is there documentation on what the proper order is? Will this work properly in all browsers?

I’m using jQuery UI as well. I know that enhances the standard animate method to allow for animating colors and such. Is that potentially the issue?

  • 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-22T12:43:01+00:00Added an answer on May 22, 2026 at 12:43 pm

    This a jQuery bug: cannot animate position and opacity at same time but is fixed in 1.6.1

    In the meantime, you can fix it by adding “px” on the end:

    $('div.example').animate({top: '100px', left: '50px', opacity: 1});
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I was working with jQuery's .load() just now and it looks like we
I have a program that writes to a FILE *cgiOut and just after it
I just went through some MVC tutorials after checking this site out for a
I'm just getting back into C++ after a couple of years of doing a
I just purchased C++ GUI Programming with Qt4 and after reading the code samples
Just dipping my toes into Linq2sql project after years of rolling my own SQL
I just found /n softwares free Powershell NetCmdlets, and after playing with them I
After searching online, the best solution I've found so far is to just make
I've just switched an application to use ar_mailer and when I run ar_sendmail (after
I m just starting using gwt and so far so good, however after reading

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.