Jump to content
Search Community

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

MarioLapone
Posted

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

 

www.attivitacollaterali.it/testArea/scrollTimeline.html 

(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.

 

 

 

MarioLapone
Posted

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

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.
×
×
  • Create New...