Bootstrap 4 Animations

Bootstrap 4 Animations 

Bootstrap animations are illusions of motions for web elements. We offer 70+ animations generated by CSS only, work properly on every browser.


Basic Bootstrap 4 version

        
            
      <img src="..." class="animated bounce infinite" alt="Transparent MDB Logo" id="animated-img1">
      
        
    

Above is an example template for Animations in the Bootstrap 4 version based on jQuery. V4 is an older version of Bootstrap and we discourage implementing it in new projects.

Below you will find the same component but in the latest, more modern Bootstrap 5. We encourage you to use the v5 version instead, the v5 is more lightweight, more reliable and based on pure JavaScript instead of jQuery.

This page only compares the two version, you can find full documentation - with multiple options & API details via one of the links below:
Bootstrap v5 - full documentation Bootstrap v4 - full documentation

Basic Bootstrap 5 version

        
            
      <div class="d-flex justify-content-around">
        <div>
          <button data-mdb-button-init
            data-mdb-ripple-init class="btn btn-primary me-5"
            data-mdb-toggle="animation"
            data-mdb-animation-target="#animate-click"
          >
            Animation on Click
          </button>
          <i
            id="animate-click"
            data-mdb-animation="slide-out-right"
            data-mdb-animation-start="onClick"
            data-mdb-animation-reset="true"
            class="fas fa-car-side fa-3x"
          ></i>
        </div>
        <div>
          <button data-mdb-button-init
            data-mdb-ripple-init class="btn btn-primary me-5"
            data-mdb-toggle="animation"
            data-mdb-animation-target="#animate-hover"
          >
            Animation on Hover
          </button>
          <i
            id="animate-hover"
            data-mdb-animation="slide-out-right"
            data-mdb-animation-start="onHover"
            data-mdb-animation-reset="true"
            class="fas fa-car-side fa-3x"
          ></i>
        </div>
      </div>