Jump to content
Search Community

LeO_on

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by LeO_on

  1. 14 hours ago, GreenSock said:

    First of all, that original demo was broken because it was linking to the beta version of ScrollTrigger which had a bug (and is now fixed). You may need to clear your cache and reload. 

     

    I didn't quite understand what you're asking - your last demo seemed to show well how you can grab the progress of a particular timeline, create a new one, and re-assign the progress to match where it was previously. 

     

    If you're still having trouble, please provide a minimal demo with as little as possible, just enough to show the particular issue you're struggling with and we'd be happy to take a look. 

    although after updating the cache, my project started working, although I used the current version of ScrollTrigger, strange, thank you!

    • Like 1
  2. 13 hours ago, GreenSock said:

    First of all, that original demo was broken because it was linking to the beta version of ScrollTrigger which had a bug (and is now fixed). You may need to clear your cache and reload. 

     

    I didn't quite understand what you're asking - your last demo seemed to show well how you can grab the progress of a particular timeline, create a new one, and re-assign the progress to match where it was previously. 

     

    If you're still having trouble, please provide a minimal demo with as little as possible, just enough to show the particular issue you're struggling with and we'd be happy to take a look. 

    I updated the cache and nothing has changed - it also throws me to the top of the page after page resize.
    About the last demo: I can add tweens to the main timeline, but I can’t create sub-timelines (via add(subtimeline)), do I need to reset their behavior somehow? 
    ok, i'll make a demo, but later. Thanks!

  3. Hello! Sorry for my english, i will use google translator. 
    Found strange behavior on the official script example 
     

    When I scroll down a bit and resize the screen, the current scroll and animation should return to their previous state. This works, but when I remove the optional section with class "gray" from the bottom, the scroll jumps to the top of the page when i resize from mobile to desktop and vice versa.
    Why? How do i get the scroll to be saved. Attached video in low resolution.
    I wanted to recreate timelines and sub-timelines for mobiles and desktops, but i dont like this jump to the top of the page. Therefore, now I make one instance of the trigger, and when the screen changes, I reset the timeline with clear() and progress(progress), but did not figure out how to create sub-timelines (with add(subtimeline)). 

    Thanks!

     

     

    See the Pen GRoyWBd by GreenSock (@GreenSock) on CodePen

×
×
  • Create New...