Hi everyone! The title says it all.
My project is HTML5 Canvas
I have an animation on my main timeline and I will like to control the animation with the mouse wheel going forward and backwards, and if I don't touch the mouse wheel it won't start.
How do I do this on my action layer?
How to invert mouse wheel?
OK, FOUND: that.targetTimeline.speed = -delta * that.force;
I really need a solution to make it works also with mobile swipe. Can you help me please?
Hi there, is there similar code to animate with page scroll rather than mouse wheel? Thanks in advance!
Thank you so much for getting back to me so quickly, unfortunately this does not work in the same way. In the code you originally supplied the animation plays and reverses with the mouse scroll but not the page scroll, it would be perfect if the animation was controlled in exactly the same with but with page scroll rather than mouse scroll. Do you know of a way to do this?
I know this is an old thread so I'm hoping you're still around to assist.
I'm having some trouble getting this work.
My clip just animates without waiting for input from the mouse wheel.
Looking at the working file, is the "hit" button important?
The hit instance is required for touch drag. But you can remove it and the related code if you wish.
And are you getting any error in the browser console (F12)?