Jump to content


Window vertical scrollbar as timelineMax slider

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

i'm trying to use the window vertical scrollbar of the browser as slider of an istance of timelineMax. i'm also using the plugin scrollToPlugin.

all seems working, with the not negligible detail that the timeline.progress is not the same of the scrolling percentage. Both, timeline progress and scrolling start from 0 and end to 1, but in all other points are differents.

so, if i try to move the verical scrollbar (as timeline slider) and then i set the timeline.progress with the scrolling percentage, the scrollbar (and the page) move immediatily to another position, very different position.


I prepared a simple page at this address



(all the scripts are in the head - do no use the mouse wheel when scrolling)


Maybe all the world knows "why" this strange behavior, excpet me.


Thank you.




Link to comment
Share on other sites

Hi MarioLapone :)


Please try adding a Linear ease to the tween. 

twl = new TweenMax.to(window, 10, {scrollTo: {y: "max", x: 0, autoKill: false }, ease:Linear.easeNone});

If you have other questions, please create a CodePen demo so it's easier to test and troubleshoot. Here's some info about that.



Happy tweening.


  • Like 4
Link to comment
Share on other sites

First: i promise that the next time i will use CodePen.

Second: thank you, PointC, now it works as i expected. and we have a new great future (prerhaps) especially in mobile apps (even if there are some others problems to solve).

Thank you again.

  • Like 3
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.