I want scroll effect, that changes active element [closed]

i want scroll effect like on this website https://uplinq.non-linear.studio/ that changes element onScroll by setting active class to current element,and hides previos element

Also i want implement it in Nextjs

I tried to find solutions but they didn’t work or there was not solution that i needed