I am trying to make two panels that can be opened and closed with two buttons.
Fiddle
Everything works fine when I like it:
- Open the red panel.
- Open the green panel.
- Close the red panel.
In this case, the red panel hides behind the green color during the animation.
But when I like it:
- Open the green panel.
- Open the red panel.
- Close the green panel.
The green panel is always in front of the red panel during animation.
But the first open panel has z-index: 9 , and the second open has z-index: 10 .
Please help me solve the problem.
javascript jquery css jquery-animate z-index
daslashi
source share