Jump to content
Search Community

ScrollTo pin & anchor

Sukru test
Moderator Tag

Recommended Posts

Hello, I did what I wanted to do, at least partially, but I could not make it work as I wanted. When I scroll to the next section, I cannot change the number, but I could not go back to the previous section and did not change the numbers in the buttons. Can you help me?

 

See the Pen mdgbVxR by sukruemanet (@sukruemanet) on CodePen

Link to comment
Share on other sites

IDK, my demo doesn't have the buttons functionality because I thought you had that working in your setup already, since your demo has it, I left it out.

 

I'll try to revisit the demo and add that feature to the demo but there are other demos that show how to use the ScrollTo Plugin to update ScrollTrigger controlled timelies:

See the Pen LYBbWLz by GreenSock (@GreenSock) on CodePen

 

See the Pen RwjQZoV by GreenSock (@GreenSock) on CodePen

 

See the Pen poKEEKB by GreenSock (@GreenSock) on CodePen

 

Hopefully this helps.

Happy Tweening!

Link to comment
Share on other sites

@Rodrigo Hello again, it is there in the installation, yes it is there, but when redirecting with href, #id, it goes with href in the examples he gives. However, I am shown as before and after. I thought it was dynamic, is it possible to do this in your own example?

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