By default, Magellan (Sticky navigation's plugin in Foundation) adds the "top" property to an element. I want to prevent this from happening because I have a fixed top bar and I want the navigation to appear underneath it. The navigation display is animated and all properties are added through CSS, so I just need to prevent top: 0px
from being added directly inline on the div.
This is what my code looks like:
<div class="sticky bar" data-magellan-expedition="fixed">...</div>
And here is my CSS:
.sticky.bar.fixed {
bottom: auto;
padding-bottom: 6px;
z-index: 98;
top:45px;
animation:subnav_sticky .2s;
-webkit-animation:subnav_sticky .2s;
}
@keyframes subnav_sticky
{
from {top:-33px;}
to {top:45px;}
}
@-webkit-keyframes subnav_sticky /* Safari and Chrome */
{
from {top:-33px;}
to {top:45px;}
}
Is it possible to achieve this without modifying the JavaScript plugin?