jQuery fadeIn on position:absolute causes z-index issue

后端 未结 5 520
青春惊慌失措
青春惊慌失措 2020-12-15 07:57

Technically I\'m using fadeToggle() but they\'re cousins... basically my issue is that I have an absolutely positioned div which I am using slideToggle()<

5条回答
  •  眼角桃花
    2020-12-15 08:30

    I have the same issue, and I'd tried all this solutions and it didn't solve my problem...

    What I did to solve it, was before calling the fade effect, I decreased the z-index for the element that was in front even with "lower" z-index... Than, I call the fade with the on complete function, so when my fade effect ends, and the z-index issue is automatically solved, I set back the z-index for the element I'd decreased at first.

    ...
提交回复
热议问题