Jump to content
Search Community

LeO_on

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by LeO_on

  1. although after updating the cache, my project started working, although I used the current version of ScrollTrigger, strange, thank you!
  2. 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. I found an old example on the internet https://codepen.io/osublake/pen/BaBdpGe/d951058e0b04421dd0b0cc0ce2bbce25 how to do that (different timelines on mobile and desktop)? how to make subtimelines to this main timeline? because after binding to the scrollTrigger main timeline, subtimelines behave incorrectly after resize, maybe i need to somehow reset them?
  4. Although, logically, scroll should not revert, because timelines duration may be different? Then how to make a separate version of main timeline with sub-timelines for mobile and desktop and save scroll position?
  5. Hello! Sorry for my english, i will use google translator. Found strange behavior on the official script example https://codepen.io/GreenSock/pen/GRoyWBd 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! Bug ScrollTrigger.webm
×
×
  • Create New...