Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Turn off Bootstrap's CSS3 transitions on progress bars

Tags:

Anyone know a way to disable Bootstrap's CSS3 transitions on the progress bars? I'm updating them via javascript/jquery and don't want them doing the animating.

This looked promising but couldn't get it to work: Turn Off CSS3 Animation With jQuery?

Info on progress bars: http://twitter.github.com/bootstrap/components.html#progress

like image 678
user1006426 Avatar asked Mar 08 '12 17:03

user1006426


People also ask

What are the different types of progress bars?

There are 2 types of progress bars: determinate and indeterminate. The former is used when the amount of information that needs to be loaded is detectable. The latter is used when the system is unsure how much needs to be loaded or how long it will take.

What are the contextual classes used with the progress bar?

Contextual classes are used to provide "meaning through colors". The contextual classes that can be used with progress bars are: . progress-bar-success.


1 Answers

You can turn off the transition effects by setting the css transition rule to none, like so:

.progress .bar {     -webkit-transition: none;     -moz-transition: none;     -ms-transition: none;     -o-transition: none;     transition: none; }​ 
like image 184
Andres Ilich Avatar answered Oct 19 '22 01:10

Andres Ilich