Jump to content
Search Community

Vertical & horizontal scroll with Scroll Indicator not to bottom

GSK test
Moderator Tag

Go to solution Solved by mvaneijgen,

Recommended Posts

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

  • Solution

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

  • Like 2
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...