How to use and how works CSS' will-change property?

前端 未结 6 1880
小鲜肉
小鲜肉 2020-12-07 12:31

I found CSS will-changeW3.org docs, MDN docs property (which already works in Chrome and is partiali supported by Firefox and Opera) but I\'m not rea

6条回答
  •  爱一瞬间的悲伤
    2020-12-07 12:41

    The best solution for me:

    transform : translate(calc(-50% + 0.5px), calc(-50% + 0.5px));

    But, this solution has trouble with calc in ios safari in a fixed position can cause high battery consumption

提交回复
热议问题