Skip to content

tomerdmnt/offcanvas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

offcanvas

OffCanvas component as described in http://jasonweaver.name/lab/offcanvas/ A great way to bring a responsive site up quickly.

  <body>
    <div role="nav">
    </div>
    <div role="main">
    </div>
  </body>
  var OffCanvas = require('offcanvas')();

  // show navigation
  OffCanvas.nav();

  // show main
  OffCanvas.main();

Installation

$ component install tomerdmnt/offcanvas

API

()

bind to the page (check if javascript exists. add transitions only after load)

nav()

Show navigation

main()

Show main

toggle()

Toggles between nav and main

License

MIT

About

OffCanvas component as described in http://jasonweaver.name/lab/offcanvas/

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published