Facebook-like slide menu in HTML5 & CSS3
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md add licensing info May 10, 2013
fb-menu.css fix tap to top functionality - seems that when you have overflow-scro… Oct 25, 2012
index.html

README.md

Facebook Mobile Slide Menu in HTML5 + CSS3

The goals of this small project are:

  • Minimal javascript
  • Rely on CSS for animations
  • Behave as much like the iOS implementation as possible
  • Do not scroll main content area when menu is visible
  • Use new iOS overflow: scroll / -webkit-overflow-scrolling: touch if possible (buggy)

Notes

The HTML and CSS are a work in progress and in no way production ready.

I have inlined most of the images using data-uri's so that I could work on this offline. All images/icons used belong to Facebook and I am simply using them for educational purposes.

Demo

You can watch a quick Youtube video I put together of how this works in the iOS simulator.

http://www.youtube.com/watch?v=uCFY0DF2UZo (a little outdated)

You may also load this URL directly on your iPod/iPhone device or the iOS Simulator:

http://getintothis.com/fb-menu/

Recent Changes

  • Enhanced swipe open and close
  • re-enabled overflow-scrolling (native scroll) in menu

License

tldr; Do whatever you want with this.


Copyright (c) 2013, Ramin Bozorgzadeh All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

  • Neither the name of Thomas J Bradley nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.