I'm trying to disable a sticky element in another waypoint, when scrolled passed a certain element on the page. Trying the normal enable/disable functions for waypoint elements, but that doesn't work. Are there other options for achieving this?
var sticky = new Waypoint.Sticky({
element: $('.float-menu')[0],
wrapper: false,
direction: 'down up'
});
I'm trying to disable a sticky element in another waypoint, when scrolled passed a certain element on the page. Trying the normal enable/disable functions for waypoint elements, but that doesn't work. Are there other options for achieving this?