3 ms·
A tip for you: please don't use background-attachment:fixed because it forces a repainting and the resultant drop below 60fps does your lib no credit. If you a
by wanda 11y ago
A tip for you: please don't use background-attachment:fixed because it forces a repainting and the resultant drop below 60fps does your lib no credit.
If you alter your approach you can still achieve the same effect by making use of
position:fixed
with either
transform:translateZ(0)
or
will-change:transform
to establish a new paint layer and enable hardware acceleration, so scrolling down (a common activity) doesn't drop below 60fps.
- franciscop 11y agoThat would explain the performance problems, thank you so much!
- wanda 11y agoNo problem.