Bootstrap Affix Example

Fixed (sticky) navbar on scroll

Scroll this page to see how the navbar behaves with data-spy="affix".

The navbar is attached to the top of the page after you have scrolled a specified amount of pixels.

Hello, Yamm 3!

This isYet another megamenu for Bootstrap 3 from Twitter. Lightweight and pure CSS megamenu that uses the standard navbar markup and the fluid grid system classes from Bootstrap 3. Work for fixed and responsive layout and has the facility to include (almost) any Bootstrap elements.

This project is currently hosted on Github and is the sequel to Bootstrap2 Yamm


View on Github Download

Markup

  1. Reuse navbar markup and add class .yamm at the top.

  2. Then add your markup into the .dropdown-menu

  3. Optionally use .yamm-content to wrap content with padding.

  4. Reuse navbar markup and add class .yamm at the top.

  5. Then add your markup into the .dropdown-menu

  6. Optionally use .yamm-content to wrap content with padding.

  7. Reuse navbar markup and add class .yamm at the top.

  8. Then add your markup into the .dropdown-menu

  9. Optionally use .yamm-content to wrap content with padding.

  10. Reuse navbar markup and add class .yamm at the top.

  11. Then add your markup into the .dropdown-menu

  12. Optionally use .yamm-content to wrap content with padding.

  13. Reuse navbar markup and add class .yamm at the top.

  14. Then add your markup into the .dropdown-menu

  15. Optionally use .yamm-content to wrap content with padding.

  16. Reuse navbar markup and add class .yamm at the top.

  17. Then add your markup into the .dropdown-menu

  18. Optionally use .yamm-content to wrap content with padding.

  19. Reuse navbar markup and add class .yamm at the top.

  20. Then add your markup into the .dropdown-menu

  21. Optionally use .yamm-content to wrap content with padding.

  22. Reuse navbar markup and add class .yamm at the top.

  23. Then add your markup into the .dropdown-menu

  24. Optionally use .yamm-content to wrap content with padding.

<nav class="navbar yamm navbar-default " role="navigation">
...
     <ul class="nav navbar-nav">
       <li class="dropdown">
         <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown</a>
         <ul class="dropdown-menu">
           <li>
               <div class="yamm-content">
                  <div class="row"> 
                    ...
           </li>
         </ul>
       </li>
     </ul>
...
</nav>