Jump to content
Search Community

ScrollTrigger end point

HadiH test
Moderator Tag

Go to solution Solved by Cassie,

Recommended Posts

image.png.42b322478568873df75397f658ea4c00.png

 

Sorry if my description earlier is not clear enough. Here's what I'm trying to do. I want to pin the title till the end of section but the current end point isn't at where I want it to be. Is it clearer now?

Link to comment
Share on other sites

Screenshot 2021-08-04 at 10.13.30.png
If you make the browser window longer you can see that the end trigger's in the right place - It just doesn't appear so because that section is pinned. If you pin a section it's pinned - when you unpin the page will continue scrolling - you can't pin a section that's higher that the viewport and expect it to unpin when the bottom of the section scrolls past. That's conflicting logic.
 

  • Like 1
Link to comment
Share on other sites

19 minutes ago, Cassie said:

If you pin a section it's pinned - when you unpin the page will continue scrolling

I get this part

 

19 minutes ago, Cassie said:

you can't pin a section that's higher that the viewport and expect it to unpin when the bottom of the section scrolls past

by this you mean I can't pin a section which has greater height than viewport, right? But I didn't pin the section though? Or a trigger element is pinned as well?

 

19 minutes ago, Cassie said:

It just doesn't appear so because that section is pinned

i thought the section only serves as trigger and the pinned one is title only?

Link to comment
Share on other sites

14 minutes ago, OSUblake said:

The trigger gets pinned. The title is just what you are going to animate.

Ahh, i see... I didn't know that before. Thanks for the explanation.

 

12 minutes ago, Cassie said:

If you're not animating anything and just want to pin you can do ScrollTrigger.create() instead.

Okay, will do.

 

Thanks for the help @OSUblake @Cassie

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