A tip for you: please don&#x27;t use background-attachment:fixed because it forces a repainting and the resultant drop below 60fps does your lib no credit.<p>If you alter your approach you can still achieve the same effect by making use of<p><pre><code>    position:fixed
</code></pre>
with either<p><pre><code>    transform:translateZ(0) 
</code></pre>
or<p><pre><code>    will-change:transform 

</code></pre>
to establish a new paint layer and enable hardware acceleration, so scrolling down (a common activity) doesn&#x27;t drop below 60fps.