You're optimizing a website for better scroll performance. Which CSS property would you use to hint to the browser about an element that will change frequently?

  • position: fixed;
  • transform: translate3d(0,0,0);
  • will-change
  • z-index
To optimize scroll performance, you can use the will-change property to hint to the browser that an element will change frequently. This allows the browser to prepare for the changes and allocate resources accordingly, improving scrolling performance. While using transform: translate3d(0,0,0); can also trigger hardware acceleration, it may not be as specific or efficient as will-change. z-index and position: fixed; are unrelated to hinting to the browser about frequent changes in an element.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *