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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T06:49:28+00:00 2026-06-02T06:49:28+00:00

Here is my situation. I’m trying to do several animations on a single element

  • 0

Here is my situation. I’m trying to do several animations on a single element at once; however, with the UI thread ‘feature’ and JQuery’s animation queue it’s becoming a hassle.

I’m designing a re-usable control library for a site and one of the things I wanted to do was to have a multi-class attribute system to initiate different animations upon ready().

For instance:

<div class="fadein loadingbar"></div>

with the CSS for an image background for .loadingbar, and then JQuery to animate the loading-bar’s background indefinitely:

$(".loadingbar").each(function(){
            $(this).css({backgroundPosition:"0px 0px"});
            $(this).animate({backgroundPosition:"(-65px 0px)"}, (($(this).height() / 35) * 2000) + 600, "linear", function(){_n3_animLoadBars(this)});
        });

as well as the fadeIn() animation for the .fadein class:

$(".fadein").each(function(){
       $(this).css({opacity:0,visibility:"visible"})
       .animate({opacity:1}, {duration:1000});
    });

However; the only way to get them to animate asynchronously is to do {queue:false} for the .animate() function, which works fine until I want to delay the fade-in animation:

$(".fadein").each(function(){
           $(this).css({opacity:0,visibility:"visible"})
           .delay(800)
           .animate({opacity:1}, {duration:1000,queue:false});
        });

which completely skips the .delay() call since it’s not queued (therefore not placing the animation cue right after the delay on the fx stack).

The only fix is to wrap the div with another div:

<div class="fadein"><div class="loadingbar"></div></div>

and to take the {queue:false} out, of course.


While this works, the javascript was supposedly going to be advanced enough so the markup didn’t have to be that messy (usually a simple div wrap like that is fine with me, but I’m designing this for my own personal amusement and I would like to keep it down to a single div if at all possible).

Any quick fix with JQuery that I am missing, or is there a way to do this through writing a plugin?

Any insight would be helpful!

  • 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-02T06:49:30+00:00Added an answer on June 2, 2026 at 6:49 am

    Found the solution – it was easier than I thought.

    Instead of specifying {queue:false} on the fade-ins, I specified it on the background animations, leaving the fade-ins queued.

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

Sidebar

Related Questions

Here is situation I have been trying to solve Lets take a Employee table
i got a tricky situation here. im trying to center 3 divs inside my
Very odd situation here. I'm trying to launch a .application file using Response.Redirect. In
I have a unique problem/situation here. Trying to make it as simple as possible.
Bumped into a strange situation here. Trying to extract cars from a sql database
Here the Situation . I am having 2 million records in table . Just
I have a situation here with post fix and prefix operator.Take a look at
I have a strange situation here. In my android app, I have a layout
I have a simple situation here. lets face html code first => <form name=geoKey
I got a little confusing situation here when I use the Context from django.template.

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.