Jump to content
Search Community

DannyA12

Members
  • Posts

    2
  • Joined

  • Last visited

DannyA12's Achievements

2

Reputation

  1. Hi Zach, Thanks for the quick response. Here's a minimal CodePen demo. https://codepen.io/USCDanny12/pen/eYZJJZK When building out the demo, I realized that my endTrigger was incorrect. Now the scrollbar is linked to the animation (very embarrassing). If the syntax looks off, I'm more than happy to update anything. In any case, thank you for your help and fast response.
  2. Hello! There's probably a very simple solution to this, but how can I pin/unpin a background (or section) while animating an element using ScrollTrigger? I want the scrollbar to act like a scrubber for the element that is being animated (using a timeline with multiple tweens) and then have the background unpinned as soon as the element is done animating. I have set the background and element as values to the trigger and the endTrigger, respectively, with the proper start/end values, but as soon as I add a second tween to the timeline, the scrollbar stops scrubbing with the animation. Thank you so much!
×
×
  • Create New...