Camera movement on mouse in tunnel

Hi everyone! i want to replicate same camera movement effect on mouse_move event as in this website The History of Connection … this is my demo https://4vkc91.csb.app/
can someone help me?

a basic implementation could be to update your “time” based on a mouse wheel event…

However, it’s likely you’d want to use something like the tween library for a more complex " smooth" implementation

not on wheel , on mousemove. have you checked the website i linked(the tunnel part)? thanks for answer tho.

yes, it’s pretty interesting interaction, have a reload of the sandbox linked before, this is the basic premise of mouse movement, the overall effect they’ve achieved is quite complex but essentially you’ll first have to detect which direction the mouse is moving which is simple enough to do, and then apply the mouse movement and position to a tween to get the smooth animation…