I have a Three.js project where I use particles + morphing with a custom shader.
Right now, the morph animation plays automatically (e.g., particles transform from a circle into an image, and from one image into another).
What I would like to achieve is:
-
Instead of the animation playing automatically with time,
-
I want the morph progress to be controlled smoothly by mouse scroll (so scrolling down increases morphing, scrolling up reverses it), and of course by touch too on mobile.
What is the best solution?
I have never worked with scrollbase animations on Three.js.
Current link: