filaraujo / akyral-layout

A responsive ui element that creates an app-like structure containing a drawer.
http://filaraujo.github.io/akyral.io/layout/index.html
27 stars 3 forks source link

Sliding drawer from top or bottom? #3

Open Matt2012 opened 10 years ago

Matt2012 commented 10 years ago

I would love to use this component as a bottom sheet as descibed in material design http://www.google.co.uk/design/spec/components/bottom-sheets.html#bottom-sheets-content

Any thoughts on adding this feature so you could use top bottom as well as left right could this be done by just tweaking css or are there bigger considerations.

Thanks for your great work.

filaraujo commented 10 years ago

Great idea great idea I'll look into prototyping options this week

Matt2012 commented 10 years ago

Awesome. I'm thinking it probably only needs to implement slide as the other options are probably counter what you would expect from the UI?

The other thing I couldn't work out is whether you can assign a closed attribute as default when you don't want it to act responsively you just want a drawer menu? I think with the polymer drawer component there is a responsiveWidth element for this.