In JavaScript this could be achieved using the scroll event[1] or the intersection observer api[2]. 1. developer.mozilla.org/en-US/docs/Web… 2. developer.mozilla.org/en-US/docs/Web…
Thread
I suspect it’s probably either Spline or Figma using transition variables tied to the scroll position though. Meaning no code was actually used