How to make accordion nav slide up to open, down to close


I’m making navigation almost identical to this

most navs like this that I’ve seen are at the top of the page and use jQuery’s slide down to reveal the sub nav and slideUp to close it.

but my navigation is fixed to the bottom on the page ( for a mobile site ). So how can I get the nav/accordion to slide up to reveal the nested <ul>?

Thanks all for looking… the solution that worked for me was just CSS. I was using absolute positioning to hold it at the bottom. But I was using top:0; left:0;. With the top setting slideDown() was of course sliding down to reveal the content. But once I changed it to bottom:0; , then slideDown() was forced to slide up to reveal the content.