Code Monkey home page Code Monkey logo

bootstrap-navbar-mobile's Introduction

bootstrap-navbar-mobile

A simple CSS & Javascript library to help you style your default bootstrap navigation bar into a conventional mobile navigation that slides in and out.

NPM

You can install directly by running npm directly from your command line interface like so:

npm install bootstrap-navbar-mobile

CDN

The CDN is updated after the release is made public. Always, check the GitHub page for the latest release.

Usage

The "bootstrap-navbar-mobile" library comes in handy when you need to style a default bootstrap menu navigation into mobile menu that slides in and out for a mobile user. It is practically the cheapest way of doing this.

Requirements

jQuery.js, BootStrap

Example - Mobile Navigation

The navbar-mobile.css & navbar-mobile.js once added to your project can be used in the following way:

<!DOCTYPE html>
<html>
<head>
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
  <link href="bootstrap-navbar-mobile.css" rel="stylesheet" type="text/css"/>
  <script src="bootstrap-navbar-mobile.js" type="text/javascript"></script>
</head>

<body>
    <nav class="navbar navbar-default navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" id="navbarMobileBtn">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#">Bootstrap Navbar Mobile</a>
            </div>
            <!--<div id="navbar" class="navbar-collapse collapse">-->
                <ul class="nav navbar-nav navbar-right navbar-mobile">
                    <li><a href="../anchor1/">Anchor 1</a></li>
                    <li><a href="../anchor2/">Anchor 2</a></li>
                    <li><a href="../anchor3/">Anchor 3</a></li>
                    <li><a href="../anchor4/">Anchor 4</a></li>
                    <li><a href="../anchor5/">Anchor 5</a></li>
                </ul>
            <!--</div>-->
        </div>
    </nav>
</body>
</html>

Contributions

Anyone and everyone is welcome to contribute.

bootstrap-navbar-mobile's People

Contributors

chigozieorunta avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.