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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:15:49+00:00 2026-05-28T08:15:49+00:00

I know the official way to wait for an animation is a callback sent

  • 0

I know the official way to wait for an animation is a callback sent to the animation function. Is it still possible to somehow query the animation queue, performing a wait loop (with a watchdog) outside the animation call?

Example (and a concrete problem)

We are using jQuery lightbox 0.5 and have moved the close button and added some info content.
The box renders correct except in IE8, where the bottom items are positioned too far up until the page is resized or a mouse over occurs.

It seems that IE needs to wait between animations in order to succeed properly.
I would like to fix this problem without changing the flow of the code. Is it possible?

This is from jQuery lightbox:

/**
* Show the prepared image
*
*/
function _show_image() {
    $('#lightbox-loading').hide();
    $('#lightbox-image').fadeIn(function () {
        _show_image_data();
        _set_navigation();
    });
    _preload_neighbor_images();
};
/**
* Show the image information
*
*/
function _show_image_data() {
    $('#lightbox-container-image-data-box').slideDown('fast');

If I change it like this, it works fine in IE8:

/**
* Show the prepared image
*
*/
function _show_image() {
    $('#lightbox-loading').hide();
    $('#lightbox-image').fadeIn(function () {
        _show_image_data();
    });
    _preload_neighbor_images();
};
/**
* Show the image information
*
*/
function _show_image_data() {
    $('#lightbox-container-image-data-box').slideDown('fast', function () {
        _set_navigation();
    });

Can I wait for the animation queue for a certain element?

Pseudo code:

/**
* Show the prepared image
*
*/
function _show_image() {
    $('#lightbox-loading').hide();
    $('#lightbox-image').fadeIn(function () {
        _show_image_data();
        var timeout = 500;
        $('#lightbox-container-image-data-box').waitForAnimation(timeout);
        _set_navigation();
    });
    _preload_neighbor_images();
};
/**
* Show the image information
*
*/
function _show_image_data() {
    $('#lightbox-container-image-data-box').slideDown('fast');
  • 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-28T08:15:49+00:00Added an answer on May 28, 2026 at 8:15 am

    You can queue your own function into the effects (fx) queue, and even delay them if you want. Just make sure you’re applying it to the exact same element as lightbox.

    $('#lightbox-image').delay(1000).queue(function(next) {
       // your code here
    
       if (next) next(); 
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In PHP, I know there is no official way to delete items once they
I know the official way is the registry, but this is kinda timeconsuming. I
Does anyone know the official method for submitting feedback on C# 4.0 so that
Know if it's possible to access the iPhone compass in Safari using JavaScript? I
Anyone know if it's possible to databind the ScaleX and ScaleY of a render
Is there any official way to allow a CSV formatted file to allow comments,
Does anyone know (with confidence either way) if Microsoft plans on continued support (as
I'm putting several tasks into a task queue and would like to know when
I don't know the official terms for what this is called, but would greatly
I am writing a Java applet, and would like to know the best way

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.