How to give scrolling effect to a glb file on the web template

Here is the website link for something that I am looking for.

I want to know how the crown glb file is changing its positioning and zooming on scroll.
Let me know if there is some documentation or demo code available for these types of requirements.
I am successfully able to load the glb file using the babylon but I am not able to change its positioning on scroll.

Thanks