Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

z-index issue on progress bar fade out (with fixed-position object on the top of the page?) #56

Open
alancwoo opened this issue Nov 22, 2013 · 5 comments

Comments

@alancwoo
Copy link

I have a fixed-position box with a background colour that is fixed to the top of the page. When the progress bar fades out, for some reason it seems to quickly flash behind the top-box for a split second.

http://jsbin.com/AnIMeWu/3/

Is this an issue with the fadeout animation? Is there a way to remedy this?

@artavenue
Copy link

Did you already find a solution for your problem? I have exactly the same.

@artavenue
Copy link

i found a solution for this:
http://philipwalton.com/articles/what-no-one-told-you-about-z-index/

the position element is important for the order of the elements. So, check if your nprogress class has a position.

@ream88
Copy link

ream88 commented Apr 27, 2014

Fixed it with:

#nprogress {
  position: relative;
  z-index: 9999999;
}

@dmackerman
Copy link

Thanks for the fix @Haihappen 👍

@mjau-mjau
Copy link

thanks @Haihappen for the fix.

I had a similar issue, spent hours trying to figure out why NProgress did not fade out (opacity) after applying NProgress.done(). I am not quite sure why it happens, but I assume it must be some specific style applied to the body tag that breaks the fade out somehow. It is as if opacity:0 gets applied to #nprogress before the transition property so there is no transition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants