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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:31:19+00:00 2026-05-13T20:31:19+00:00

I’m using jQuery to animate DOM element on the page and I hit an

  • 0

I’m using jQuery to animate DOM element on the page and I hit an obstacle when using its native animate().

I’m trying to move my element to the right and change its opacity.

$element.animate({
    'left': '50%',
    'opacity': '1.0'
}, 1000);

It works very well, but I need to animate position in 1000ms and opacity in 300ms.

I found out that I can’t write it like this:

$element.animate({
    'left': '50%'
}, 1000);


$element.animate({
    'opacity': '1.0'
}, 300);

This will result in queued animation, because it is the same element and jQuery apparently needs to wait for the first animation to finish. Or I’m doing something wrong here.

I tried using second argument notation (based on http://api.jquery.com/animate) and using queue: false but it didn’t work. I must say I don’t understand it thoroughly, so any corrections are welcome.

So my question is this – how to independently change duration interval for these CSS properties?

  • 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-13T20:31:19+00:00Added an answer on May 13, 2026 at 8:31 pm

    I think you were on the right track when trying to use queue. Here’s an example of how this should be working, I hope it helps :

    $('#element').animate({ left:'50%' }, { queue: false, duration: 1000 })
                 .animate({ opacity : '1.0' }, { queue : false, duration: 300 });
    

    Edit: Successfully Tested 🙂

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

Sidebar

Related Questions

I'm trying to animate a block level element using jQuery. The page loads with
Using JQuery's jquery.animate-colors-min.js plugin I am trying to change the background color of some
I'm trying to get both a fadeIn (opacity toggle) and border fade (using jquery-animate-colors
I am trying to find a way to animate a div using jQuery to
I want to use .animate to change colors when .bind('click') is fired, using jquery
I'm using this jQuery to hide a DIV: $(#slider).click(function() { $(.help).slideToggle(); $(#wrapper).animate({ opacity: 1.0
I'm using JQUERY animate to show a banner at the top of the page,
I'm using jquery to change/animate bg positions of a menu item, but I need
All, I am trying create a 'to & fro' animation using jquery animate &
When using jQuery .animate(width: value) it animates the width from left to right. So

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.