Manually Control the Animation with progress in GreenSock

InstructorJohn Lindquist

Share this video with your friends

Send Tweet

Each animation can be moved to a specific point in time based on the progress setting between 0 and 1 (0% and 100%). This lesson shows how to control the progress using the scroll wheel of the mouse which can easily fast-forward or rewind through the timeline.

Sigmundur Morkore
~ 6 years ago

instead of using wheelDelta which is a non-standard, you should probably be using the deltaY, which is part of the standard. https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent