Skip to content

A pure JavaScript solution for a responsive, scrolling menu bar.

License

Notifications You must be signed in to change notification settings

pbaity/bungie-bar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bungie Bar

This is a practice project in making a pure JavaScript solution for a responsive, scrolling menu bar. It was inspired by the scrolling menu for the iPhone page on Apple's website, which is only visible in a mobile viewport.

Getting Started

To use Bungie Bar, follow these simple steps:

  1. Include the bungie.js and bungie.css files in your project.
  2. On the nav bar you want to use, wrap the three portions of the nav bar in <div>s: the leftmost with the id left, the rightmost with the id right, and the center with the id bungie. This is the portion of the navbar that will hide in smaller viewports and offer scrolling buttons instead.
  3. Next, configure the CSS as you'd like. Currently, the styles are set up for the dark theme included in demo.html, so coloring will be the main thing to change. The arrow symbols are the HTML characters &lsaquo; and &rsaquo;, but these can be substituted for any other symbol you want in the content of the button's styling. (Arrow alternatives I recommend are the &rangle; and &langle;.)
  4. And that's it! Try resizing your webpage to test out the Bungie Bar.

License

Take, modify, improve, and use the code you find here. Bungie Bar is licensed under the MIT License, and is free for commercial or personal use.

About

A pure JavaScript solution for a responsive, scrolling menu bar.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published