Bootstrap snippet and html example. Loading Animation like Facebook Style

Bootstrap 4.5.0 snippet "Loading Animation like Facebook Style" with HTML, CSS, and JS. Copy, paste, and customize this responsive UI component for your project.
Tags: loading,animation

HTML code

Clean, semantic HTML that powers this Bootstrap 4.5.0 snippet. Copy and paste it into your page (with Bootstrap loaded) to reproduce the exact layout shown in the preview.

<div class="container">
    <div class="wrapper">
      <div class="wrapper-cell">
        <div class="image animated-background "></div>
        <div class="text">
          <div class="text-line animated-background "> </div>
          <div class="text-line animated-background "></div>
          <div class="text-line animated-background "></div>
          <div class="text-line animated-background "></div>
        </div>
      </div>
      <div class="wrapper-cell">
        <div class="image animated-background "></div>
        <div class="text">
          <div class="text-line animated-background "></div>
          <div class="text-line animated-background "></div>
          <div class="text-line animated-background "></div>
          <div class="text-line animated-background ">   </div>
        </div>
      </div>
      <div class="wrapper-cell">
        <div class="image animated-background "></div>
        <div class="text">
          <div class="text-line animated-background "></div>
          <div class="text-line animated-background "></div>
          <div class="text-line animated-background "></div>
          <div class="text-line animated-background "></div>
        </div>
      </div>
      <div class="wrapper-cell">
        <div class="image animated-background "></div>
        <div class="text">
          <div class="text-line animated-background "></div>
          <div class="text-line animated-background "></div>
          <div class="text-line animated-background "></div>
          <div class="text-line animated-background "></div>
        </div>
      </div>
      <div class="wrapper-cell">
        <div class="image animated-background "></div>
        <div class="text">
          <div class="text-line animated-background "></div>
          <div class="text-line animated-background "></div>
          <div class="text-line animated-background "></div>
          <div class="text-line animated-background "></div>
        </div>
      </div>
      <div class="wrapper-cell">
        <div class="image animated-background "></div>
        <div class="text">
          <div class="text-line animated-background "></div>
          <div class="text-line animated-background "></div>
          <div class="text-line animated-background "></div>
          <div class="text-line animated-background "></div>
        </div>
      </div>
        <p class="text-center">Credits: <a href="https://codepen.io/brucevang/pen/qZOPwR">Bruce vang</a></p>
    </div>
</div>

CSS code

Scoped CSS that styles the component. Paste it after Bootstrap 4.5.0 to keep the design, spacing, and responsiveness consistent.

body { 
    margin-top:20px;
   background: #E9E9E9;
   display: flex;
   align-items: center;
   justify-content: center;
}

.wrapper {
  margin: 30px;
  padding: 30px;
  background: #fff;
  width: 360px;
  height: 640px;
  display: flex;
  flex-direction: column;
}

.wrapper-cell {
   display: flex;
   margin-bottom: 30px;
}

@keyframes placeHolderShimmer{
    0%{
        background-position: -468px 0
    }
    100%{
        background-position: 468px 0
    }
}

.animated-background {
    animation-duration: 1.25s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-name: placeHolderShimmer;
    animation-timing-function: linear;
    background: #F6F6F6;
    background: linear-gradient(to right, #F6F6F6 8%, #F0F0F0 18%, #F6F6F6 33%);
    background-size: 800px 104px;
    height: 96px;
    position: relative;
}


.image {
  height: 60px;
  width: 60px;
  @extend .animated-background;
}

.text {
  margin-left: 20px
}

.text-line {
  height: 10px;
  width: 230px;
  margin: 4px 0;
}

Similar snippets

Bootstrap example and template. css loading box

css loading box

Bootstrap example and template. infinite page loader

infinite page loader

Bootstrap example and template. load page indicator

load page indicator

Bootstrap example and template. page loader

page loader

Bootstrap example and template. subscription form

subscription form

Bootstrap example and template. menu widget with collapse panels

menu widget with collapse panels

Bootstrap example and template. Search Results with image

Search Results with image

Bootstrap example and template. Blog post list

Blog post list

FAQ

How do I use this snippet?

Include Bootstrap 4.5.0, 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 4.5.0.

Bootstrap example and template. Loading Animation like Facebook Style

About this bootstrap example/template

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 14.0K+ views. Reuse this snippet to speed up landing pages, dashboards, or onboarding flows.

Bootstrap 4.5.0

<link rel='stylesheet' href='https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css'>

<script src='https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js'></script>

This code example is based on bootstrap 4.5.0 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

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