To my surprise, I'm not seeing much for this.
The bootstrap docs give plenty of options for displaying a progress bar, but no instructions for actually making it do something.
I'm writing a one page web app that'll ideally use a progress bar transition before switching to the hidden part of the page.
Here's the simplified html:
HTML
<div id="part1">
<p>Sample App</p>
<button class="analyze btn btn-primary">Analyze</button>
</div>
<div id="part2">
<!-- Some html goes here -->
</div>
CSS
#part2 {
display: none;
}
Jquery
$(".analyze").click(function() {
$("#part1").hide();
$("#part2").show();
});
This is very simple. What I'd like to do is make a progress bar that dynamically populates on $(".analyze").click and takes a fixed amount of time to complete before #part2 becomes visible using the bootstrap progress bar.
Something very similar to what hipmunk, or many of the other airline aggregator sites do.
Ideally this is compatible across most browsers and uses jquery since this is what I'm using to make most of the UI for my app.