Safari changing font weights when unrelated animations are running

后端 未结 3 580
梦谈多话
梦谈多话 2020-12-04 11:00

I\'m using css animations on my page and Safari seems to change unrelated font weights elsewhere on the page when animations are running. Any idea why this happens? All othe

3条回答
  •  时光说笑
    2020-12-04 11:11

    I've faced this issue numerous times and have had success adding the following css to the animated element:

    z-index: 60000;
    position: relative;
    

    It seems it needs both z-index and position to be effective. In my case I was using it with Font Awesome animated spinners.

提交回复
热议问题