Jump to content
Search Community

How to allow an pinned element to scroll further if it doesn't fit in height?

Poylar test
Moderator Tag

Go to solution Solved by GreenSock,

Recommended Posts

Hello. 

What i want: when I scroll to the big content block, it needs to first scroll itself to all of its content, and only after that it goes beyond other blocks. can you please give me an example of such an implementation or at least something to read to understand how to implement it?
I came up with a solution like start:'bottom 70%' for example, but how do I apply this only to a block that doesn't fit on the screen?

 

p.s what wront with orange block in codepen?

See the Pen JjvxVQw?editors=1010 by poylar (@poylar) on CodePen

Link to comment
Share on other sites

2 hours ago, GreenSock said:

I don't have much time to dig into your question right now, but perhaps one of these demos will offer some insight: 

 

 

 

 

 

 

 

If that doesn't help and you still need assistance, please let us know. 

that work, thanks you!

 

interesting that in this solution you didn't use the end parameter based on the height of each panel. This is my previous question. In any case, everything works, thanks!

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