Here is an example that uses various html document scroll properties to trigger javascript functions that change some threejs scene properties.
Animate on Scroll : Animate on Scroll - Three.js Tutorials
It is just one of the many ways to do it.
Are here is another way that I found on discourse.