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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T17:18:18+00:00 2026-06-04T17:18:18+00:00

I have an element that’s going into a slideshow, and when the slide comes

  • 0

I have an element that’s going into a slideshow, and when the slide comes in, this element uses the jQuery UI effect explode to appear.

$e.show('explode', {}, 1000);

When I first ran it, I didn’t see the element appear at all. So I thought “Oh, it must be z-index” and set the element’s z-index to 10 and made sure it had position defined. (The slide’s z-index is 5)

This made the image show up after the effect is complete. I hid the slide to test, and sure enough, the animation was happening behind the slide, seemingly with a lower z-index.

Why can’t I see the element until after the animation?

  • 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-04T17:18:19+00:00Added an answer on June 4, 2026 at 5:18 pm

    What’s Happening

    When certain elements are animating with jQuery UI, depending on the effect, the element itself may be cloned. The element that you are manipulating ($e) is actually hidden, and not part of the DOM at the time of animation, so your CSS rules are useless here. Some of the rules are applied to the cloned element with jQuery, however, z-index is not one of them.

    Fix it With CSS Animations

    I suggest using CSS Animations which directly manipulate your element, and have no need to clone the element. Though this makes effects like explode slightly more complex, not only are you maintaining your CSS rules, but CSS animations make for a huge performance gain over jQuery UI animations. (jQuery UI applies each ‘step’ of the animation individually, meaning many repaints). A limitation with this, however, is cross-browser compatibility, as it looks like IE is still not up to par with this.

    Fix it With z-index

    If you’re hell-bent on using jQuery UI for your animations, or can’t risk the lack of cross-browser compatibility, there is still hope. In my tests, the ‘cloned’ element gets a class added to it temporarily of ui-effects-explode. It seems that most jQuery UI animations that require cloning the original element apply a class with similar syntax (ui-effects-*).

    Your catch-all to save yourself the frustration on individual effects is to make a CSS-rule like the following:

    [class^=ui-effects] {
        z-index: 10;
    }
    

    Where ^= means ‘begins with’. This will apply the z-index to any cloned elements within jQuery UI namespace, and should resolve your issue.

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

Sidebar

Related Questions

I have an element that is using -moz-resize CSS style. This style enables resizing
I have an anchor element that looks like this <a href=url><img src=imgurl/>Text</a> I would
This site is built using CakePHP 1.2* I have an element that needs to
I have an anchor element that uses a css class to basically replace the
I have a form element that I'm setting as required: $this->addElement('text', 'email', array( 'label'
I have an element that serves as the banner on my website. This banner
I have an element that looks something like this. <xsd:element name=container> <xsd:complexType> <xsd:choice minOccurs=0
So, let's say that I have an element that is inline-block. So this won't
I have multiple element that are jquery ui draggable, these elements can also be
I have a div element that has an id and this div contains a

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.