react-awesome-reveal icon indicating copy to clipboard operation
react-awesome-reveal copied to clipboard

Z-index problem

Open ghost opened this issue 4 years ago • 3 comments

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.

ghost avatar Sep 10 '21 19:09 ghost

@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.

jpatterson933 avatar Oct 06 '21 02:10 jpatterson933

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?

inapeace0 avatar Feb 07 '22 15:02 inapeace0

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

morellodev avatar Oct 15 '22 07:10 morellodev