Share Posted March 25, 2022 Hello guys, i need help with the design i need to achieve. I have a vertical line, with 4 sections in this case, where i need to move number while scrolling on that vertical line and change the number when it hits the section dot. If anyone can help with it, i would appreciate a lot. Link to comment Share on other sites More sharing options...
Share Posted March 25, 2022 based on the info provided I would start by: place your number holder in a fixed spot like 200px from top of the page create a ScrollTrigger for each circle set each ScrollTrigger to have a start:"top 200px" give each ScrolTrigger an onEnter callback that increments a number. start with just a console.log(count++) or similar Try to get this working in a minimal demo. Don't focus on the design at all. Just some colored divs that move up and down the page when you scroll is a good place to start. If you get stuck, just post your demo here and I'll take a look. 3 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now