How to change an element visibility as we scroll down

I want an element to be appeared at a specific part on my page as I scroll down to it and it disappears as I scroll away from its range.

Can you please help me figure out a code for this?

https://www.wix.com/corvid/reference/$w.EffectOptions.html
https://www.wix.com/corvid/reference/$w.ViewportMixin.html
https://www.wix.com/corvid/reference/wix-window.html#scrollTo
https://www.wix.com/corvid/forum/corvid-tips-and-updates/make-your-site-respond-when-elements-scroll-into-view

If you’re doing this to animate the element, it’s fine. But note that if you’re doing this for loading purposes, it doesn’t matter if the item is visible or not, it will still impact your load time the same way.