Weird CSS3 Transition (flickering)

后端 未结 8 2067
悲&欢浪女
悲&欢浪女 2020-12-12 19:09

When I hover unto my button, it gives a white flash first when starting the transition. Why does it sort of flickers when I apply a css3 transition to my button? My brow

8条回答
  •  南笙
    南笙 (楼主)
    2020-12-12 19:17

    I solved the blinking like this:

    Html as follows:

    css as follows:

    .pswp__zoom-wrap{
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    }
    .pswp__zoom-wrap *{
    -webkit-backface-visibility: hidden!important;
    backface-visibility: hidden!important;
    }
    .pswp__item{
    transform: translate3D(0, 0, 0);
    -webkit-transform: translate3D(0, 0, 0);
    }
    

提交回复
热议问题