特殊属性
will-change
will-change 属性用于向浏览器提供提示,表明某个元素或其特定属性在未来极有可能发生变化。这有助于浏览器提前优化相关渲染流程,提升动画或其他动态效果的性能。
element {will-change: auto | <animateable-feature> [, <animateable-feature>]*;}
auto(默认):浏览器根据自身算法决定是否优化。<animateable-feature>:可动画化特性,可以是以下值之一:scroll-position:元素的滚动位置。contents:元素的内容。transform、opacity、filter、clip-path、perspective、