How to add css style if user scroll page over the height of the footer
posted 3 months ago
my footer has a CSS element (a social anchor) that sticks at the very bottom of it. As the user scrolls up, it "anchors" at the bottom. Instead of that behaviour, I would like that once the user reaches the top of footer, then it sticks there as the user keeps scrolling up. I am trying to achieve it through this:
This does not work and the anchor still stays at the bottom as the user scrolls. How do I dynamically determine where the top of the footer is? How does I make it stick there?