Jump to content
GreenSock

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

aroca

Members
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Newbie

About aroca

  • Rank
    Newbie
  1. Hi, thx for the answer. This is what I have to sync scrollTrigger with locomotive: src/components/scroll.jsx locoScroll.on("scroll", ScrollTrigger.update); ScrollTrigger.scrollerProxy(scrollWrapper.current, { scrollTop(value) { console.log(locoScroll.scroll.instance.scroll.y); return arguments.length ? locoScroll.scrollTo(value, 0, 0) : locoScroll.scroll.instance.scroll.y; }, getBoundingClientRect() { return { top: 0,
  2. Hi, im tying to use scrollProxy with locomotive like in the docs with Nextjs. Locomotive works fine but scrollTrigger its always at the initial position. It seams that the scrollTop inside the scrollerPoxy its not returning any value. I made a codesandbox to show the case: Scroll component: https://codesandbox.io/s/nextjs-gsap-locomotive-qq11t?file=/src/components/scroll.jsx Live demo: https://qq11t.sse.codesandbox.io/ I'm looking for a good way to implement a smooth-scroll in nextjs so if any have an alternative to locomotive and works with gsap it wou
×