Chrome issue with background-attachment fixed and position fixed elements

前端 未结 8 1624
情话喂你
情话喂你 2020-12-02 08:46

I\'ve had this issue for a while and it seems to be a Chrome redraw bug that hasn\'t been fixed. So I\'m looking for any stop-gap fixes.

The main issue is that when a

8条回答
  •  不知归路
    2020-12-02 09:19

    My problem was I have animated 3d transform hover div in document

    .anim-y360:hover {
        -webkit-transform: rotateY(360deg);
        ...
    }
    

    Every time I run the animation the fixed image was disappearing.

    The solution was simple:

    .anim-y360 {   
       z-index: XX;
       ...
    }
    

    Where XX is higher than the fixed position image's z-index.

提交回复
热议问题