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 problem #90

Open
ghost opened this issue Sep 10, 2021 · 3 comments
Open

Z-index problem #90

ghost opened this issue Sep 10, 2021 · 3 comments

Comments

@ghost
Copy link

ghost commented Sep 10, 2021

When working with sections that have z-index applied to them the animation messes up the z-index.

It can be solved by adding animation-fill-mode: backwards !important; but there is not general class name for animations so we can add it to all.

@jpatterson933
Copy link

jpatterson933 commented Oct 6, 2021

@cZeaushe which element are you adding animation-fill-mode: backwards !important; to? I have a fixed element that has a z-index of 99 and an banner element that is supposed to be behind the fixed element but the z-index on the fixed element is no longer working - I've tried it both ways but maybe I am missing something.

EDIT: I actually figured it out. By assigning the className to the Fade object that I was using as the same className that had the z-index, I fixed the issue and the z-index started working again.

@inapeace0
Copy link

Hi, @jpatterson933. I had the same issue during the development. According to your comment, I tried and some sections were success, but some sections were failed. So, I unwrapped the fade effect from the header section(fixed on top), and then it run well.
Why is such issue happened?

@morellodev
Copy link
Owner

Could you please make a reproducible CodeSandbox example starting from this template?

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

3 participants