Jump to content
Search Community

Pin depending on scroll direction

mikelpom test
Moderator Tag

Go to solution Solved by akapowl,

Recommended Posts

I am trying to simulate this sidebar effect but I am not able to do it. Demo: https://somewebmedia.github.io/hc-sticky/demo_1.html

If the height of the window is less than the height of the sidebar, when scrolling the sidebar stays sticky at the bottom when scrolling down.

However, if you scroll up, the sidebar sticks to the top.

With the examples that I have found, the sidebar always stays sticky at the top.

Is there a way to make the sidebar sticky up or down depending on the scroll direction?

Link to comment
Share on other sites

We love helping with GSAP-related questions, but unfortunately we just don't have the resources to provide free general consulting, logic troubleshooting, or "how do I recreate this cool effect I saw on another site?" tutorials. Of course anyone else is welcome to post an answer if they'd like - we just want to manage expectations.  

 

You can post in the "Jobs & Freelance" forum for paid consulting, or contact us directly. 

 

Otherwise, if you've got a GSAP-specific question just post that here along with a minimal demo and we'd be happy to take a look. 

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