UNPKG

foundation-sites-5

Version:

**This package is only for versions 5 and earlier of Foundation. As of version 6, the package has a new name: `foundation-sites`.**

15 lines (14 loc) 660 B
{{#markdown}} ```javascript $(document).foundation({ "magellan-expedition": { active_class: 'active', // specify the class used for active sections threshold: 0, // how many pixels until the magellan bar sticks, 0 = auto destination_threshold: 20, // pixels from the top of destination for it to be considered active throttle_delay: 50, // calculation throttling to increase framerate fixed_top: 0, // top distance in pixels assigend to the fixed element on scroll offset_by_height: true // whether to offset the destination by the expedition height. Usually you want this to be true, unless your expedition is on the side. } }); ``` {{/markdown}}