tags:
- navigation
---
-
-<nav data-magellan>
- <ul class="horizontal menu">
- <li><a href="#setup">Setup</a></li>
- <li><a href="#sticky-navigation">Sticky Navigation</a></li>
- <li><a href="#sass-reference">Sass Reference</a></li>
- <li><a href="#javascript-reference">JavaScript Reference</a></li>
- </ul>
-</nav>
+<div data-sticky-container>
+ <div class="sticky" id="sticky-magellan" style="width:100%;" data-sticky data-margin-top="0" data-margin-bottom="0" data-top-anchor="setup" data-btm-anchor="destroy:bottom">
+ <nav data-magellan class="sticky-mag">
+ <ul class="horizontal menu expanded">
+ <li><a href="#setup">Setup</a></li>
+ <li><a href="#sticky-navigation">Sticky Navigation</a></li>
+ <li><a href="#javascript-reference">JavaScript Reference</a></li>
+ </ul>
+ </nav>
+ </div>
+</div>
## Setup
## Sticky Navigation
-You can use Magellan with our Sticky plugin to create a persistent navigation header or sidebar.
+You can use Magellan with our Sticky plugin to create a persistent navigation header or sidebar. The first example is a simplified version of the table of contents on the right side of this page, the second is the menu bar floating at the top of the page.
```html
-<div data-sticky="header">
- <ul class="horizontal menu" data-magellan>
- <li><a href="#first">First Arrival</a></li>
- <li><a href="#second">Second Arrival</a></li>
- <li><a href="#third">Third Arrival</a></li>
- </ul>
+<div class="large-3 columns" data-sticky-container>
+ <nav class="columns" data-sticky data-anchor="exampleId" data-sticky-on="large">
+ <ul class="vertical menu" data-magellan>
+ <li><a href="#first">First Arrival</a></li>
+ <li><a href="#second">Second Arrival</a></li>
+ <li><a href="#third">Third Arrival</a></li>
+ </ul>
+ </nav>
+</div>
+
+
+
+<div data-sticky-container>
+ <div class="sticky" id="example" data-sticky data-margin-top="0" style="width:100%;" data-margin-bottom="0" data-top-anchor="topAnchorExample" data-btm-anchor="bottomOfContentId:bottom">
+ <nav data-magellan>
+ <ul class="horizontal menu expanded">
+ <li><a href="#first">First Arrival</a></li>
+ <li><a href="#second">Second Arrival</a></li>
+ <li><a href="#third">Third Arrival</a></li>
+ </ul>
+ </nav>
+ </div>
</div>
```