Skip to content

carloscabo/css3-slide-out-menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

css3-slide-out-menu

(Almost) Pure CSS3 Slide Out Menu (In the Facebook fashion).

Based mainly in the Miguel Mota concept (with several modifications, read below).
http://www.miguelmota.com/blog/slide-out-navigation-using-css3-translate/

And other ideas / aproaches like:
https://github.com/valdelama/responav

And many other hints / tips by other people.

Demo

http://htmlpreview.github.io/?https://github.com/carloscabo/css3-slide-out-menu/master/index.html

Short URL
http://bit.ly/19GFiZB

Features

  • Lightweight (No iScroll.js)
  • 3D Accelerated by OpenGL (Where available)

Changes

I think its better to have a minimun JS than use the "checkbox hack / trick", that gives some problems in Android browsers (and makes necessary to add some JS anyway...).

So I decided to change it by a traditional "toggleClass on the body element" approach, well know and very widespread tested. And that could be also achieved with a simple JS even without JQuery (to-do).

  • Added JQuery 1.9.1
  • Added Normalize.css

Bugs / Known Issues / Test

I've been testing it in iPhone 4 / 4S / iPad 2 / Android 4 and seems to work quite fine (with some ver very small issues).

In Android 2 native browser the menu opens / closes but the scroll areas are inactive, I suspect the only workaoround will be to add iScroll or another solution similar in this particular case.

TO-DO

  • Try to find a workaround in Android2 native browser.
  • Add alternative JS without JQuery

About

(Almost) Pure CSS3 Slide Out Menu (In the Fcebook fashion)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages