GSK Posted June 28, 2023 Share Posted June 28, 2023 At the bottom you can see the scroll indicator, it should show the position on the page. In this example you can see that it is not ending on the end of the page, but stops way before it actually hits the bottom. Is there a way i can make the scroll indicator work from the top of the page, until the bottom? See the Pen XWyMMBK by gkcreative (@gkcreative) on CodePen Link to comment Share on other sites More sharing options...
Solution mvaneijgen Posted June 28, 2023 Solution Share Posted June 28, 2023 Hi @GSK welcome to the forum! It ends when you say it ends and because you tell the ScrollTrigger nothing it will use the default values. I've updated your end trigger to use "max", this will set it so that it will use the maximum ScrollTrigger distance (eg the end of the page) (I've also set ease: "none", so that the animation is linear all the way, instead of "power1.out" which is the default of tweens. Hope it helps and happy tweening! See the Pen vYQxxoa?editors=1010 by mvaneijgen (@mvaneijgen) on CodePen 2 Link to comment Share on other sites More sharing options...
GSK Posted June 28, 2023 Author Share Posted June 28, 2023 Thanks! I had the ease:'none' set as global config. Forgot to add this in here. 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