Coffin is a UI component built on top of the Skeleton framework. It aims to provide a simple, collapsible left shelf. Coffin is fully responsive and automatically collapses in mobile views - allowing you to swipe away and toggle a nagivation in and out of view. It behaves similar to facebook/path's navigation UI.
Coffin tries to adhere to semver as defined here http://semver.org/
Coffin's only dependency is skeleton. It has no js dependencies.
Currently only tested in Chrome and Safari on my iphone. Planning on adding more browsers as this tightens up though.
Using coffin is super easy. Just define a .coffin and a .page. A coffin is a collapsible drawer (you may have seen it implemented in facebook or path's iphone application). A page is a wrapper for your container. It's what slides over the top of your coffin.
To use coffin make sure you include skeleton's CSS. You'll want to have your assets loaded in a similar order as to what is shown directly below. You should include coffin.js at the bottom of your page, not in the head!
There are three main things to note when marking up a page with a coffin.
A simple implementation for the above markup might look something like this:
This project is hosted on github. Feel free to file an issue or open a pull request against the project here.
If you are opening a bug, please provide a link to a reproducible test case - preferably in jsfiddle or jsbin. If you are submiting a pull request, please do so from a feature branch. Thanks!
Created by @fat, 2012 ©