Rotate image on scroll

Hey, community!
I am looking for a way to rotate a 3D image with the user scroll.

so let’s say the image rotation is set at 0 on the top of the page and the end of the page, the rotation is set at 360.

when the user is scrolling the image rotates.

these posts might help: