Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8990061
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T22:24:53+00:00 2026-06-15T22:24:53+00:00

Just like http://twitter.github.com/bootstrap , The site what I working on now is responsive. I

  • 0

Just like http://twitter.github.com/bootstrap,

The site what I working on now is responsive.

I would like to remove transition animation

when I click the collapsed navbar menu button.


enter image description here

Above picture is the screenshot of what I’m asking.

At TOP-RIGHT-CORNER, there is a three-lined menu button.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T22:24:54+00:00Added an answer on June 15, 2026 at 10:24 pm

    Bootstrap accomplishes the transition animation of the responsive nav bar the same way it does any collapse, which is using a CSS3 transition. To turn off the transition for only the navbar (leaving any other transitions in place), you simply have to override the CSS.

    I’d suggest adding a class, such as no-transition (but the name can be arbitrary) to your collapsible container

    <div class="nav-collapse no-transition">
    

    and then defining a CSS rule that will disable the CSS3 transition that Bootstrap defined (make sure your CSS rule is parsed after bootstrap.css):

    .no-transition {
      -webkit-transition: height 0;
      -moz-transition: height 0;
      -ms-transition: height 0;
      -o-transition: height 0;
      transition: height 0;
    }
    

    But, don’t stop there! Bootstrap’s JavaScript is hard-coded to assume that a transition WILL take place if transitions are supported by the browser. If you just make the change above, you’ll find that the collapsible object “locks” after one open/close cycle, because it is still waiting for the browser’s transition end event to fire. There are two less-than-ideal ways to work around this:

    First option: hack bootstrap-collapse.js to not wait for the transition end event. Messing with Bootstrap is never a great idea because it’ll make future updates a pain for you. This particular work-around would also need to be similarly applied to any other Bootstrap JavaScript component onto which you wish to impart the no-transition class.

    bootstrap-collapse.js:107

          this.$element.hasClass('no-transition') || (this.transitioning = 1);
    

    Second, recommended, option: use an ultra-short transition time instead of disabling the transition. This doesn’t quite remove the transition animation as you asked, but it accomplishes a similar result with likely no noticable negative impact on the performance of your low-powered mobile devices. The upside of this method is that you don’t have to hack any Bootstrap JS files, and you can apply no-transition to any element, not just a collapse!

    .no-transition {
      -webkit-transition: height 0.01s;
      -moz-transition: height 0.01s;
      -ms-transition: height 0.01s;
      -o-transition: height 0.01s;
      transition: height 0.01s;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

http://twitter.github.com/bootstrap/scaffolding.html I tried like all combinations: <div class=row> <div class=span7 offset5> box </div> </div>
I would like to change: http://example.com/index.php?p=blog&pid=2&lid=1&l=en into just http:// example.com/en/blog.html or just http:// example.com/blog.html
I understand I can go to http://twitter.github.com/bootstrap/customize.html#components and select the only the components I
I'm debugging a Twitter Bootstrap dropdown menu (http://twitter.github.com/bootstrap/javascript.html) which isn't dropping down. I'm assuming
Possible Duplicate: Fixed sidebar navigation in fluid twitter bootstrap 2.0 ref to http://twitter.github.com/bootstrap/examples/fluid.html is
I am trying to use scrollspy, but at http://twitter.github.com/bootstrap/javascript.html#scrollspy , the example seems not
URL: http://twitter.github.com/bootstrap/base-css.html#forms It says I have to add <fieldset class=control-group error> … </fieldset> But
Just like what happens when you click Sign in with OpenID on http://twitterfeed.com/ ,
Jnunemaker just updated his twitter gem (https://github.com/jnunemaker/twitter) and removed the Twitter::Oauth class. My code
I did something similar to: http://tympanus.net/codrops/2012/01/04/thumbnail-proximity-effect/ and just like the original it works in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.