I have a button and I want it to become a sticky notification bar after scrolling past that element (so when it disappears). When a visitor scrolls back to or above the position of the button the reverse process should occur. I assume it should happen by changing the style of the element. Any heads up?
Asked
Active
Viewed 56 times
0
-
use listener to scroll, and pageX to know if passed $(elm).position().top as you want – Álvaro Touzón Feb 22 '17 at 12:24
-
Heads up: Search for detect scroll past – mplungjan Feb 22 '17 at 12:29
-
Thanks for all responses. I worked it out. – Justin Feb 24 '17 at 14:08