HTML code
Clean, semantic HTML that powers this Bootstrap 3.3.4 snippet. Copy and paste it into your page (with Bootstrap loaded) to reproduce the exact layout shown in the preview.
Download<div class="loading-container">
<div class="loading-progress">
<div class="rotator">
<div class="rotator">
<div class="rotator colored">
<div class="rotator">
<div class="rotator colored">
<div class="rotator colored"></div>
<div class="rotator"></div>
</div>
<div class="rotator colored"></div>
</div>
<div class="rotator"></div>
</div>
<div class="rotator"></div>
</div>
<div class="rotator"></div>
</div>
<div class="rotator"></div>
</div>
</div>
<div class="container bootstrap snippets bootdeys">
<div class="jumbotron">
<h1 id="loading-text">Loading...</h1>
</div>
</div>CSS code
Scoped CSS that styles the component. Paste it after Bootstrap 3.3.4 to keep the design, spacing, and responsiveness consistent.
Downloadbody{margin-top:20px;}
/* ------------------------ LOADING ----------------*/
@-webkit-keyframes spin {
0% {
-webkit-transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
}
}
@-moz-keyframes spin {
0% {
-moz-transform: rotate(0deg);
}
100% {
-moz-transform: rotate(360deg);
}
}
@-o-keyframes spin {
0% {
-o-transform: rotate(0deg);
}
100% {
-o-transform: rotate(360deg);
}
}
@keyframes spin {
0% {
-webkit-transform: rotate(0deg);
-moz-transform: rotate(0deg);
-ms-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
-moz-transform: rotate(360deg);
-ms-transform: rotate(360deg);
transform: rotate(360deg);
}
}
.loading-container {
z-index: 2000;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, .55);
}
.loading-container.loading-inactive {
display: none;
}
.loading-container.loading-inactive .loading-progress {
display: none;
}
.loading-container .loading-progress {
z-index: 2000;
position: fixed;
height: 10px;
width: 10px;
margin: auto;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
.loading-container .loading-progress .rotator {
-webkit-animation: spin 30s infinite linear;
-moz-animation: spin 30s infinite linear;
-o-animation: spin 30s infinite linear;
animation: spin 30s infinite linear;
}
.loading-container .loading-progress>.rotator {
left: -100px;
}
.loading-container .rotator {
-webkit-background-origin: border-box;
-moz-background-origin: border-box;
background-origin: border-box;
background-color: #fff;
width: 200px;
height: 7px;
opacity: .75;
position: absolute;
top: 0;
left: 0;
}
.loading-container .colored {
background-color: #2dc3e8!important;
}Javascript/Jquery code
Lightweight JS to power any interactions this snippet needs. Drop it under your scripts (after Bootstrap 3.3.4) to mirror the live demo.
Download$(window)
.load(function () {
setTimeout(function () {
$('.loading-container')
.addClass('loading-inactive');
/*in production, remove this line*/
$("#loading-text").addClass('text-success').html('page loaded');
}, 8000);//in production change 8000 to 0
}); FAQ
How do I use this snippet?
Include Bootstrap 3.3.4, paste the HTML, add the CSS block, and include the JS (if any) to mirror the live preview.
Can I use it in commercial projects?
Yes. It’s free for personal and commercial work; check the snippets license for details.
Is it responsive?
Yes. It inherits the responsive grid and components from Bootstrap 3.3.4.
About this bootstrap example/template
This free Bootstrap 3.3.4 snippet, load page indicator, was published on Nov 11th 2015, 10:32 by Bootdey Admin.
Optimized for copy‑paste: clean HTML, scoped CSS, and minimal JS so you can ship production‑ready UI faster and keep designs consistent.
Mobile‑first and responsive by default. Tested across modern browsers to reduce polish time on your project.
Already trusted in 9.4K+ views. Reuse this snippet to speed up landing pages, dashboards, or onboarding flows.
Bootstrap 3.3.4
<link rel='stylesheet' href='https://netdna.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css'>
<script src='https://netdna.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js'></script>
This code example is based on bootstrap 3.3.4 and the grid system of this framework
Responsive
Based on bootstrap framework makes all the layouts perfectly responsive for all devices
Crossbrowser compatibility
Tested on all major browsers, it works smoothly on all of them
Jquery plugins
Great built-in plugins with jquery framework, you can easy to change all declarations
semantic html 5
Built on html / css3 the code quality is really amazing
Simple Integration
This code example can be simply integrated on existing sites and new ones too, all you need to do is copy the code and start working