-
Notifications
You must be signed in to change notification settings - Fork 515
Is there a way to bottom out the sticky element at n pixels? #173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
+1 |
+1 I also need offset_bottom option. I need to bottom out the element 100px "before" the parent element is scrolled out. |
I know this is old but I was looking for the same thing, and I've managed to work around this lack of bottom offset by adding some margin/padding at the bottom of the sticky element. edit: forget it, it doesnt work. |
I am looking for exactly this! |
I just found this MR but it looks like it is not going to be merged in any time soon. |
+1. doesn't seem like the project is still maintained though |
Assuming a structure like this:
Just create a pseudo element after the p:
This hack allows for a bottom offset of 100px. |
Hi, We want to add some margin to the bottom of the sidebar that is sticky... so we just need to add a little more height to the div but by a hidden element.
For example I added a new with the height of 20px as the last child of the side bar. To clear out, the code looks like something like this:
and
so the sticky-kit library wants to make it scrollable and sticky so some space appears on the bottom looking like some margin. Well... That works for me :) It is a very simple solution. But I hope it was helpful. |
I have need for a
offset_bottom
type of option. Does one exist or is there some way to accomplish this without having to rewrite the plugin?For example, I need the bottoming out to happen at 70px from the bottom of the parent element. and for it to stay at that position, relative to the parent as I continue to scroll down the page.
The text was updated successfully, but these errors were encountered: