I’m trying to make the sidebar menu stick when you scroll to the top on desktop, and to make the hamburger menu stick to the top when you scroll on a mobile device.
// code for sidebar navigation to have white background - added by Patrick Anthony 4/10/22
[data-section-id=“sidebar”] nav{
background: #FFFFFF;
opacity:.9;
}
// code for sidebar navigation to scroll behind footer menu rather than infront - added by Patrick Anthony 4/10/22 #SearchDrawer {
z-index:1001;
}
// code for sidebar navigation to have white background - added by Patrick Anthony 4/10/22
[data-section-id=“sidebar”] nav{
background: #FFFFFF;
opacity:.9;
}
// code for sidebar navigation to scroll behind footer menu rather than infront - added by Patrick Anthony 4/10/22 #SearchDrawer {
z-index:1001;
}
// code for sidebar navigation to have white background - added by Patrick Anthony 4/10/22
[data-section-id=“sidebar”] nav{
background: #FFFFFF;
opacity:.9;
}
// code for sidebar navigation to scroll behind footer menu rather than infront - added by Patrick Anthony 4/10/22 #SearchDrawer {
z-index:1001;
}
Hi! This code worked perfectly, however, because my menu is a bit long, when you scroll down to the footer the menu is visible behind it. Is there any way I can trigger the sticky navigation to stop once it hits the footer?