Bootstrap snippet and html example. Loading Animation like Facebook Style

This html snippet was created to help web designers, web developers, front-end and back-end developer save time. Use it for free in your project and build your app faster, You can also download the HTML, CSS, and JS code.
Tags: loading,animation

HTML code

This is the html code used to create this bootstrap snippet, You can copy and paste the following html code inside a page with bootstrap 4.5.0 included, to get the result that you can see in the preview selection

<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

This is the css code used to create this bootstrap snippet, You can copy and paste the following css code inside a page with bootstrap 4.5.0 included, to get the result that you can see in the preview selection

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. bs4 navbar with dropdown animations

bs4 navbar with dropdown animations

Bootstrap example and template. load page indicator

load page indicator

Bootstrap example and template. bs4 alpha Dynamic Loading progress Bar

bs4 alpha Dynamic Loading progress Bar

Bootstrap example and template. page loader

page loader

Bootstrap example and template. Invoice

Invoice

Bootstrap example and template. bs4 Responsive Dashboard Menu Cards

bs4 Responsive Dashboard Menu Cards

Bootstrap example and template. Gradients dashboard cards

Gradients dashboard cards

Bootstrap example and template. page loader

page loader

Bootstrap example and template. Loading Animation like Facebook Style

About this bootstrap example/template

We hope you will enjoy this awesome snippet and stay tuned for the latest updates, bootdey snippets are already used in thousands of blogs, websites and projects. We believe it will save your precious time and gives trendy look to your next web project.

We always try to offer the best beautiful and responsive source of Bootstrap code examples and components.

This code example currectly have 11.8K views, Using this bootstrap snippet you have the following benefits:

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