Jump to content
Search Community

ScrollToPlugin its not working,please help me,thanks u

freedomweb test
Moderator Tag

Go to solution Solved by GreenSock,

Recommended Posts

  • Solution

There are several problems:

  1. You were targeting the wrong element (one that doesn't scroll)
  2. You didn't specify that you wanted it to scroll in the "x" direction (default is "y")
  3. You're using VERY old versions of GSAP. I'd strongly recommend updating to the modern files which are smaller, more powerful, and more capable. See https://greensock.com/3-migration. You don't NEED to upgrade - I'm just recommending it. 

See the Pen QWOXyzq?editors=0011 by GreenSock (@GreenSock) on CodePen

 

Happy tweening!

Link to comment
Share on other sites

4 minutes ago, GreenSock said:

There are several problems:

  1. You were targeting the wrong element (one that doesn't scroll)
  2. You didn't specify that you wanted it to scroll in the "x" direction (default is "y")
  3. You're using VERY old versions of GSAP. I'd strongly recommend updating to the modern files which are smaller, more powerful, and more capable. See https://greensock.com/3-migration. You don't NEED to upgrade - I'm just recommending it. 

 

thanks you,its working...

 

Happy tweening!

 

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...