ScrollToFixed
ScrollToFixed copied to clipboard
'scroll-to-fixed' class not removed when element is returned to normal document position
I've tried to get the class removed but my JS isn't great. any ideas?
<nav id="main-navigation" class="main-navigation cf">
$('#main-navigation').scrollToFixed();
EDIT:
It seems to be affected when I change:
baseClassName:"scroll-to-fixed-fixed"
to
baseClassName:"stf-fixed"
Looking at what the code has become, I would say use "className": "stf-fixed" instead of "baseClassName" to have css control over fixed vs unfixed. This seems to be more consistent with what I see in the code for the fixed vs the unfixed event handling.
Thanks, where do I apply this? I had just edited the baseClassName in the plugin js file