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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:31:16+00:00 2026-05-28T14:31:16+00:00

from jquery animate doc i found a sample example where multiple animate function is

  • 0

from jquery animate doc i found a sample example where multiple animate function is used for single div.

doc url http://api.jquery.com/animate/

here is sample code

$( "#go1" ).click(function(){
$( "#block1" ).animate( { width: "90%" }, { queue: false, duration: 3000 })
 .animate({ fontSize: "24px" }, 1500 )
 .animate({ borderRightWidth: "15px" }, 1500 );
});

here i have couple of question about animate function

1) why queue: false
why queue is false. what would be the result if queue was true

2) here animate use like animate().animate().animate() this way
so all the animate will run parallel or one after one?

  • 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-28T14:31:17+00:00Added an answer on May 28, 2026 at 2:31 pm

    1) If queue were set to true then each animation would complete before the next one ran.

    queue: A Boolean indicating whether to place the animation in the
    effects queue. If false, the animation will begin immediately. As of
    jQuery 1.7, the queue option can also accept a string, in which case
    the animation is added to the queue represented by that string.

    Source: http://api.jquery.com/animate

    2) Well queue = false means that they will run together, and queue = true means they will run one after another.

    Also you can animate several properties with one .animate() call like this:

    $( "#go1" ).click(function(){
        $( "#block1" ).animate({
            width            : "90%",
            fontSize         : "24px",
            borderRightWidth : "15px"
        }, { queue: false, duration: 3000 });
    });
    

    But this requires the animations to all have the same duration. These properties will be animated all at once, not one at a time.

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

Sidebar

Related Questions

From the JQuery reference @ http://api.jquery.com/animate/ : $('#book').animate({ opacity: 0.25, left: '+=50', height: 'toggle'
I have the following animation: http://jsfiddle.net/jtqcj/2/ jQuery(#fp-small-feature-1).mouseenter(function(){ jQuery(.bar).animate({width: 264px},500); }); jQuery(#fp-small-feature-1).mouseleave(function(){ jQuery(.bar).animate({width: 0px},800); });
When I use jQuery animate() function to change the size of a div, it
I'm using the .animate function from the jquery.color.js library to highlight a label on
Seeing this block from jQuery.scrollTo.js library (in v1.4 at line 184). function animate( callback
Using jQuery rotate http://code.google.com/p/jqueryrotate/wiki/Examples to animate an object from 0 degrees to 40 degrees
I'm using jQuery autocomplete plugin from jQuery website calling the controller url which return
I am trying to make the example from jquery-color work, but it's giving me
When using jQuery .animate(width: value) it animates the width from left to right. So
I have a jQuery UI slider here. http://jsfiddle.net/DrR7s/7/ I have animate attribues value as

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.