Rotate on scroll on Z section

I am trying to achieve an animation on a 3d object on a z section that rotates on a scroll

the website link for reference:

Most of the solutions that are close to this are built with either react-fiber or trios (for Vue), I’m meant to write this with pure vanilla js, any help will be appreciated

What did you try so far? Should be quite easy, just a matter of reproducing the code of ScrollControls in vanilla (although the range notation may be a bit cleaner in JSX than it’ll be in pure JS :sweat_smile:)