on-internet
← Community

Sticky sidebar: stick to bottom when scrolling down, top when scrolling up

Stack Overflow ·

I have been looking for some time now for a solution to my sticky sidebar problem. I have a specific idea of how I would like it to act; effectively, I would like it to stick to the bottom as you scroll down, and then as soon as you scroll back up I would like it to stick to the top, in a fluid motion (no jumping). I am unable to find an example of what I am trying to achieve, so I have created an image that I hope will illustrate the point clearer: Sidebar sits under the header. As you scroll down the sidebar remains level with the content of the page so that you can scroll through both sideb

Comments

Sign in or sign up to comment and upvote.

No comments yet.