-
Notifications
You must be signed in to change notification settings - Fork 25
Is there an offset for bottom? #3
Comments
+1 |
Could you have a look at #8 and see if it answer your question ? |
Thanks @PowerKiKi. So #8 isn't quite what I had in mind. I still want to activate the fixed based on top, but when I reach a certain point at the bottom while scrolling I want to deactivate the fixed position |
+1 |
If somebody makes a PR with tests and doc, I'll merge it. |
Maybe some of the following could be relevant / helpful to this issue? If not, can you please expand on your use case for the bottomPoint? With the
or more conveniently, the alias: This configures the scrollpoint to trigger when the bottom edge of the element hits the top edge of scroll target, and when the top edge of the element hits the bottom edge of the scroll target. Essentially, it triggers when the element goes entirely out of view, hence the alias. If it is about pinning/stickying of elements: I have a branch on my fork that introduces a Further thoughts / workaround could use two |
@sharpmachine I think PR #16 might solve your question... With it, you could do like: That would activate the scrollpoint when you scroll past 25% from top, and deactivate when you hit the bottom. I will note that the bottom setting only acts as a "deactivator" if both top and bottom are absolute, in which case ui-scrollpoint is applied when scrolled between those absolutes. If there is a relative setting, it takes precedence. I think it is pretty close, but would need some adjustment in the I am interested to hear from those requesting this feature what the attribute values would ideally look like? |
Is Ui-Scrollpoint meant to be an Angular-friendly Affix.js? If so, how do I set a bottom-offset–a class that get's added when the bottom is reached? I want to remove the ui-scrollpoint class when I reach the bottom.
The text was updated successfully, but these errors were encountered: