So basically i saw this demo here: https://codepen.io/snorkltv/pen/vYVBPJq and decided to try it out in react but for some reason the code only actvates when i've scrolled to the bottom is there any reason why?
here's mine : https://stackblitz.com/edit/vitejs-vite-83dipo?file=src/App.jsx