GithubHelp home page GithubHelp logo

bamboo.js's Introduction

Bamboo.js

This is a basic structural framework for responsive Web Apps that require a sliding menu and a fixed header with scrollable content area.

The burger menu button toggles the menu open and close. You can also swipe left or right to interact with the menu. When the browser is greater than a specified breakpoint (desktop) the menu is permanently visible on the left.

This is an example

How to use

Include the Bamboo.js Script, CSS file and use the index.html as the base.

<nav id="main-nav" class="navigation overflow">
    <ul>
    <li><a href="#">Menu item</a></li>
    <li><a href="#">Menu item 2</a></li>
</ul>;
</nav>;
<div id="container">;
    <header class="primary">;
        <span class="open icon">&#9776;</span>
        <hgroup><h1>Title</h1></hgroup>
    </header>
    <section id="scroller" class="overflow">
        <div id="content">
            <!-- Content goes in here -->

            <!-- Content ends -->
        </div>
    </section>

</div&gt;

<script src="http://code.jquery.com/jquery-2.0.0.min.js"></script>
<script src="js/bamboo.0.1.js"></script>

<script>
    var site = new Bamboo();
</script>

You can define the following properties:

menu: true/false
breakpoint: default (768),
menuWidth: default (265),
headerHeight: default (50),
snapThreshold: null or 0-1,
resize: null // function to allow a callback

Example

var site = new Bamboo({
    menu: true,
    swipeToOpen: false,
    breakpoint: 768,
    menuWidth: 265,
    headerHeight: 50,
    resize: function(){
        // function to call on page resize/orientation change
    }
});

bamboo.js's People

Contributors

andygreig avatar mismith avatar holymiracle avatar

Stargazers

Chingun Erdene-Ochir avatar Justin Torres avatar o0xmuhe avatar 欧阳风神 avatar Farhan Israq avatar Igo Fernando avatar Marc avatar Juan Miguel Calcaño avatar  avatar Jack Foul avatar www.idercn.com avatar ciey avatar Jéssica  avatar  avatar AmirHossein avatar Ivan Novikov avatar Matthew Lee avatar Jamie avatar De'Yonte W. avatar  avatar Igor Besel avatar Kevin Rajaram avatar Eric Ting avatar  avatar Rajeeb avatar Subigya Kumar Nepal  avatar Nick Sadovnikov avatar Arlo Jamrog avatar Mitko Georgiev avatar Tianyong Tang avatar Nico Prins avatar Jacques Maes avatar Hugo Matilla avatar Luke Skywalker avatar fnsoxt avatar Mark Kemper avatar Pete Harris avatar Timothy Clifford avatar Hugo Heneault avatar Markus Padourek avatar pwlin avatar Denny avatar Carles Mata avatar Stepan Matousek avatar Alex Ruiz avatar Niji avatar Saverio Ferrara avatar João Makray avatar  avatar Harrison Powers avatar MAHMOUDE avatar Ponchai Reainthong avatar  avatar Axelaredz avatar Denis Terekhov avatar Daniel Salunga avatar Jared Williams avatar Andreas Gehrke avatar Victor Perron avatar Iftach avatar  avatar  avatar Abhijit Kadam avatar Christopher David Elison avatar Ismail Demirbilek avatar Pedro Coutinho avatar Ievgenii Syrotenko avatar Christian Foellmann avatar Gary Jones avatar Jonas Moreira avatar Norik Davtian avatar Chris Bracco avatar Atallah khedrane avatar  avatar Josh Sherman avatar Anibal Gomez avatar Dave Jimenez avatar Ben avatar Hooman avatar Vyacheslav Goreev avatar Eddy Ferreira avatar Juarez Filho avatar Jesse Wood avatar Akita Noek avatar David Li avatar Pascal Müller avatar Masahiro Nishimi avatar Michael Raguse avatar Andreas Klein avatar Jake Craige avatar JM avatar Jed avatar Cory Monteleone-Haught avatar Bob Rupholdt avatar  avatar Ben Tsai avatar hawskpy avatar Jackie Ng avatar Kosso avatar Guirec Lefort avatar

Watchers

Michelle B avatar evandrix avatar  avatar  avatar Hooman avatar Carles Mata avatar Toby Usher avatar  avatar

bamboo.js's Issues

google chrome scrolling issue

This is classic off canvas menu but there seems to be a big issue on chrome android, the scroll is super slow, it works on the stock browser and other browsers however there seems to be a problem with the chrome scrolling. any fixes on that?

Main content does not reset when re-sizing with open menu

How to replicate:

  1. Change browser window size to smallest width to trigger menu icon.
  2. Open the menu (so menu pushes main content).
  3. Now expand the browser size to max width.

Although this wouldn't affect specific browser widths (mobile/tablet users wouldnt be able to replicate this), it can mess up the layout for desktop browsers.

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.