-
Notifications
You must be signed in to change notification settings - Fork 166
js-is-sticky class added when item not stuck #441
Comments
I made minor tweaks to html in this forked codepen. Hope it helps. |
Sorry, here's a better test case: https://codepen.io/DavidChouinard/pen/ebxrGG Header #1 behaves as expected, but notice how Header #2 triggers its stuck state midway through the page. How can I detect when Header #2 has reached the top? |
Never mind, looks like the |
Stickybits should work with the dom tree that you had setup if/after this feature is implemented—or by using the Stickybits is most useful for "doing stuff" when it is sticky. In my own UI discussions, I always suggest to only use Thanks for your thoughtful issue and debugging. |
Got it, thank you — will follow #327 for a resolution. |
See this codepen: https://codepen.io/DavidChouinard/pen/ebxrGG
I expect
js-is-sticky
to only be added when the item has reached the top of the screen — when it's "stuck". It appears the class is added anytime the viewport is partially scrolled, regardless of whether the sticky item has reached the top — is this is a bug?(appears similar to issue #95)
The text was updated successfully, but these errors were encountered: