Jump to content
Search Community

ScrollTrigger not working Vue

qhuy978 test
Moderator Tag

Go to solution Solved by GreenSock,

Recommended Posts

  • Solution

It looks like you set things up so that your elements aren't scrolling on the main page - they're inside a position: fixed element that is scrolling instead. By default, ScrollTrigger uses the main page as the "scroller", so all you need to do is set the "scroller" property correctly (point it to your container element that's doing the scrolling). 

https://codesandbox.io/s/exciting-keldysh-t2mtcd?file=/src/components/Intro.vue

 

Does that clear things up? 

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...