Add Border when scroll?

Hello guys,
I’d like to rebuild the scroll Effect from this page: https://amandamartocchio.com/

I tested some ideas but nothing really worked.

The Problem is that the interaction is connected to the scroll but I don’t know how to “stop” the scroll down for the first scroll.

Thanks in advance


Here is my public share link: LINK
(how to access public share link)