Hello, I have a problem with multiple magellan, the second one is "working" but it's starting to work at the same time as the first one, so this is a problem for me, can this be fixed?
Here is my codepen: http://codepen.io/woosaj/pen/jWwxZE
Tuesday, January 12, 2016 at 5:09 AM EST
This is a pretty cool use case! What type of site requires two different sticky side nav's?
it certainly could be fixed, with a pull request or in the future. When I wrote this, 2 separate magellan plugins weren't on my use case radar, so magellan just sweeps the dom for anything with a [data-magellan-target] attribute. That could be changed a bit to look for [data-magellan-target="id-of-magellan-you-want-to-target-this-element"]. that would require the addition of an id to your magellan root element, and slightly more markup to your target elements.
Same problem here.
I have three sections in my nav (3x <ul>). But magellan highlights the active element in all lists.
@Andy GueraHave you come up with a solution?
I found this script to be very useful:
Visit https://github.com/zurb/foundation-sites/issues/10712 to find a workaround for multiple Mafellans on one page.
Hope that helps.
Create an Account
Get up to speed FAST, learn straight from the experts who built Foundation.
Stay informed with amazing responsive trends each month from ZURB.
Learn Foundation from the creators in our interactive online webinars which will keep you up to date with the latest trends and skills needed to win your projects.
Or if you prefer, contact the Foundation Team at email@example.com or (408) 341-0600 x635