News for hackers. Stuff that matters.
Re:Sidr - A jQuery plugin for creating side menus by ricardobeat on Sunday March 31, 2013 @04:08AM (#5468068)
How do you close it?

Taking a look at the source, it should use CSS translateY instead of javascript animation, would perform much better specially on mobile devices.

Re:Sidr - A jQuery plugin for creating side menus by amarco on Sunday March 31, 2013 @04:26AM (#5468094)
I agree! Mobile performance on my iPhone 5 is a bit jarring, definitely look into the use of CSS Transforms instead.
Re:Sidr - A jQuery plugin for creating side menus by dbushell on Sunday March 31, 2013 @06:16AM (#5468270)
jQuery animate is terrible for performance. The demo lags at a few frames per second (and I'm testing on a Nexus 4).

CSS transitions are the method for this. Not without their own caveats, but usable. I've written extensively on the subject with this exact implementation of an off-canvas menu: http://coding.smashingmagazine.com/2013/01/15/off-canvas-nav...

Re:Sidr - A jQuery plugin for creating side menus by augustflanagan on Sunday March 31, 2013 @01:23PM (#5469349)
This article was great! I had implemented a side menu on my own a couple of days before this came out. It was using css transitions on the width property which was fine on desktop, but clunky on mobile. I re-worked it following your approach and was really happy with the results.
Re:Sidr - A jQuery plugin for creating side menus by start123 on Sunday March 31, 2013 @03:55AM (#5468050)
The plugin currently shifts the main content pane to the right. It would be great if it could reduce its width instead, so the entire content can fit in the screen.
Re:Sidr - A jQuery plugin for creating side menus by ricardobeat on Sunday March 31, 2013 @04:10AM (#5468071)
This type of menu is supposed to be transient, closing after a click, but this doesn't seem to be working on desktop.
Re:Sidr - A jQuery plugin for creating side menus by jacquesc on Sunday March 31, 2013 @06:38AM (#5468313)
This looks pretty good. Currently using http://jpanelmenu.com/, though I'll have to try this one out to see how it compares.
Re:Sidr - A jQuery plugin for creating side menus by ajanuary on Sunday March 31, 2013 @05:07AM (#5468163)
On mobile safari it seems to keep opening and closing the menu as I scroll, seemingly randomly.
Re:Sidr - A jQuery plugin for creating side menus by manojlds on Sunday March 31, 2013 @06:58AM (#5468338)
The page was such a mess to use on my iPad
Re:Sidr - A jQuery plugin for creating side menus by tegansnyder on Sunday March 31, 2013 @10:37AM (#5468725)
I built a few different approaches to do these menus a while back. Mostly intended to be used on Phonegap applications where you can restrict the web view bounce. Yours look way more configurable but if anyone is interested in a Zepto.js version: https://github.com/tegansnyder/Zepto-Mobile-Slide-Menu I also have a JQuery version: https://github.com/tegansnyder/JQuery-Mobile-Slide-Menu and a neat little dropdown from top version: https://github.com/tegansnyder/CNN-Like-Swipe-From-Top-Menu-...
Re:Sidr - A jQuery plugin for creating side menus by LAMike on Sunday March 31, 2013 @05:00AM (#5468147)
Hey, this is exactly what I was looking for! Thanks. Can someone explain why css animations are more efficient than javascript animations? Or is it just a matter of preference
Re:Sidr - A jQuery plugin for creating side menus by quarterto on Sunday March 31, 2013 @05:22AM (#5468175)
Modern browsers can hardware-accelerate CSS animations. http://blog.teamtreehouse.com/increase-your-sites-performanc...
Re:Sidr - A jQuery plugin for creating side menus by dbushell on Sunday March 31, 2013 @06:24AM (#5468287)
jQuery animate (and any JS animation) iterates over CSS properties by updating an elements style attribute. Updating the DOM at this rate forces repaint/reflows and is rarely going to perform well.

CSS transitions/transforms let the browser render once on separate layers. The animation frames can then be composited faster (and accelerated on the GPU).

Paul Irish has a great demo: http://paulirish.com/2012/why-moving-elements-with-translate...

Re:Sidr - A jQuery plugin for creating side menus by michaelmartin on Sunday March 31, 2013 @07:49AM (#5468425)
It's cool to see more libraries appearing for this effect. I think it's really nice on the responsive demo at least.

It does beg some questions about using it in non-touch scenarios though. The experience with a mouse isn't the best right now because everything moves.

Would be curious about the menu having a close button of its own, in the exact same position that the "Menu" you would have clicked to open it was in.

Re:Sidr - A jQuery plugin for creating side menus by mistercow on Sunday March 31, 2013 @07:34AM (#5468403)
Pretty neat. What would be especially useful would be if you could support nested lists for creating submenus.
Re:Sidr - A jQuery plugin for creating side menus by peachananr on Sunday March 31, 2013 @06:40AM (#5468317)
Now, this is useful for responsive design. :)
Re:Sidr - A jQuery plugin for creating side menus by pests on Sunday March 31, 2013 @11:06PM (#5471217)
Although I'm not sure if the responsive term is meant to include desktop resizes, nor if it is just a problem on the site itself (which is a problem in itself); the site includes both top and side menu when going from a small browser window to a big one.
Re:Sidr - A jQuery plugin for creating side menus by futhey on Sunday March 31, 2013 @04:41AM (#5468113)
mmm, Cider...