Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

mimoid-prog

Members
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Newbie

About mimoid-prog

  • Rank
    Newbie
  1. When you use smooth-scrollbar, React and GSAP ScrollTrigger in multiple React components all animations stop working. Firstly I thought it's Gatsby issue but the same thing happens for pure React. Everything works well if you don't use smooth-scrollbar, also everything works well when you use smooth-scrollbar and store all scrollTrigger animations in one useEffect. But when you move them to other components then all animations stop working. Try to use my codepen example. Animations don't work but when you comment out scrollTrigger object from the "Other" component then it starts
  2. Hello, I have the very similar setup (Gatsby, ScrollTrigger and smooth-scrollbar) but the given solution doesnt work for me - I can see scroller-start and scroller-end markers following the scrolled screen but not the markers of the animated element. I can see markers of the animated element only if I add scroller property to it but then scroller-start and scroller-end dont follow the screen. Also I tried to make some console.logs inside this scrollTop function but it looks like it doesn't work too. useEffect(() => { const bodyScrollBar = Scrollbar.init(box.current)
×