Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bootstrap navbar to animate up instead of down when collapse

I have my main nav fixed on the bottom of my page and want the navbar to animate up when clicked on instead of animate down. Can someone please help me out with this or send me in the right direction? it is not a dropdown menu i know how to make the dropdown menu drop up. when the width is a certain size it turns into a dropdown menu and i would like for it to animate to the top when clicked on instead of the bottom.
any help would be great thank you.

like image 372
Travis Michael Heller Avatar asked Jul 31 '13 20:07

Travis Michael Heller


1 Answers

Is this what you looking for?

  • old bootstrap 2.3.0: http://jsfiddle.net/zalog/Apx5N/77/

    .navbar-fixed-top, .navbar-fixed-bottom {
        position: fixed;
    }
  • latest bootstrap 3.2.0: http://jsfiddle.net/zalog/xC7a5/

In the latest version of bootstrap, this is the default functionality.

like image 52
zalog Avatar answered Sep 28 '22 05:09

zalog