Vue Bootstrap Animations

Vue Animations - Bootstrap 4 & Material Design

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

Transparent MDB Logo

Select an animation


Basic usage

Using our animation is simple.

Step 1: Add the class .animated to the element you want to animate.

Step 2: Add one of the following classes:

  1. .bounce
  2. .flash
  3. .pulse
  4. .rubberBand
  5. .shake
  6. .headShake
  7. .swing
  8. .tada
  9. .wobble
  10. .jello
  11. .bounceIn
  12. .bounceInDown
  13. .bounceInLeft
  14. .bounceInRight
  15. .bounceInUp
  16. .bounceOut
  17. .bounceOutDown
  18. .bounceOutLeft
  19. .bounceOutRight
  20. .bounceOutUp
  21. .fadeIn
  22. .fadeInDown
  23. .fadeInDownBig
  24. .fadeInLeft
  25. .fadeInLeftBig
  26. .fadeInRight
  27. .fadeInRightBig
  28. .fadeInUp
  29. .fadeInUpBig
  30. .fadeOut
  31. .fadeOutDown
  32. .fadeOutDownBig
  33. .fadeOutLeft
  34. .fadeOutLeftBig
  35. .fadeOutRight
  36. .fadeOutRightBig
  37. .fadeOutUp
  38. .fadeOutUpBig
  39. .flipInX
  40. .flipInY
  41. .flipOutX
  42. .flipOutY
  43. .lightSpeedIn
  44. .lightSpeedOut
  45. .rotateIn
  46. .rotateInDownLeft
  47. .rotateInDownRight
  48. .rotateInUpLeft
  49. .rotateInUpRight
  50. .rotateOut
  51. .rotateOutDownLeft
  52. .rotateOutDownRight
  53. .rotateOutUpLeft
  54. .rotateOutUpRight
  55. .hinge
  56. .rollIn
  57. .rollOut
  58. .zoomIn
  59. .zoomInDown
  60. .zoomInLeft
  61. .zoomInRight
  62. .zoomInUp
  63. .zoomOut
  64. .zoomOutDown
  65. .zoomOutLeft
  66. .zoomOutRight
  67. .zoomOutUp
  68. .slideInDown
  69. .slideInLeft
  70. .slideInRight
  71. .slideInUp
  72. .slideOutDown
  73. .slideOutLeft
  74. .slideOutRight
  75. .slideOutUp

Step 3 (additionally): You may also want to include the class infinite for an infinite loop.

Transparent MDB Logo

        <template>
          <img class="animated bounce infinite" src="https://mdbootstrap.com/img/logo/mdb-transparent.png">
        </template>
      

Reveal Animations When Scrolling

Thanks to MDB you can easily launch an animation on page scroll - as soon as element is fully visible on the screen

Sample image
Sample image
Sample image
Sample image
Sample image
Sample image

          <template>
            <section>
              <div class="mb-5">
                <mdb-row class="mb-4">
                  <mdb-col>
                    <img
                      src="https://mdbootstrap.com/img/Photos/Horizontal/Nature/4-col/img%20(31).jpg"
                      alt="Sample image"
                      class="img-fluid"
                      v-animateOnScroll="{animation: 'bounceInLeft', delay: 300, position: 20}"
                    >
                  </mdb-col>
                  <mdb-col>
                    <img
                      src="https://mdbootstrap.com/img/Photos/Horizontal/Nature/4-col/img%20(32).jpg"
                      alt="Sample image"
                      class="img-fluid"
                      v-animateOnScroll="'tada'"
                    >
                  </mdb-col>
                  <mdb-col>
                    <img
                      src="https://mdbootstrap.com/img/Photos/Horizontal/Nature/4-col/img%20(73).jpg"
                      alt="Sample image"
                      class="img-fluid"
                      v-animateOnScroll="{animation: 'fadeInLeft', delay: 200}"
                    >
                  </mdb-col>
                </mdb-row>
                <mdb-row class="mb-4">
                  <mdb-col>
                    <img
                      src="https://mdbootstrap.com/img/Photos/Horizontal/Nature/4-col/img%20(34).jpg"
                      alt="Sample image"
                      class="img-fluid"
                      v-animateOnScroll="'fadeInRight'"
                    >
                  </mdb-col>
                  <mdb-col>
                    <img
                      src="https://mdbootstrap.com/img/Photos/Horizontal/Nature/4-col/img%20(14).jpg"
                      alt="Sample image"
                      class="img-fluid"
                      v-animateOnScroll="'fadeIn'"
                    >
                  </mdb-col>
                  <mdb-col>
                    <img
                      src="https://mdbootstrap.com/img/Photos/Horizontal/Nature/4-col/img%20(35).jpg"
                      alt="Sample image"
                      class="img-fluid"
                      v-animateOnScroll="'rollIn'"
                    >
                  </mdb-col>
                </mdb-row>
              </div>
            </section>
          </template>
        

          <script>
            import { mdbRow, mdbCol, animateOnScroll } from 'mdbvue';
            export default {
              name: 'AnimationsPage',
              components: {
                mdbRow,
                mdbCol,
              },
              directives: {
                animateOnScroll
              }
            }
          </script>
        

Basic usage

Step 1: Import animateOnScroll directive from 'mdbvue'


        <script>
          import { animateOnScroll } from "mdbvue";
        </script>
      

Step 2: Add animateOnScroll to directives


         <script>
          import { animateOnScroll } from "mdbvue";
          export default {
            name: "AnimationsPage",
            directives: {
              animateOnScroll
            }
          }
        </script>
      

Step 3: Pick an animation style from the list of animations and set the directive equal to its name:


        <template>
          <img
            src="https://mdbootstrap.com/img/logo/mdb-transparent-250px.png"
            alt="Transparent MDB Logo"
            v-animateOnScroll="'fadeIn'"
          >
        </template>
      

        <script>
          import { animateOnScroll } from "mdbvue";

          export default {
            name: "AnimationsPage",
            directives: {
              animateOnScroll
            }
          }
        </script>
       

Step 4: Customize your animation according to your needs by passing an object to a v-animateOnScroll directive. Apart from animation class you can specify delay or position - delay takes time as an argument (in miliseconds) while position is an additional percent of a view port height user has to scroll before an animation starts.


        <template>
          <img
            src="https://mdbootstrap.com/img/logo/mdb-transparent-250px.png"
            alt="Transparent MDB Logo"
            v-animateOnScroll="{animation: 'fadeInRight', delay: 100, position: 12}"
          >
        </template>
      

        <script>
          import { animateOnScroll } from "mdbvue";

          export default {
            name: "AnimationsPage",
            directives: {
              animateOnScroll
            }
          }
        </script>
       


Warning: file_get_contents(common/gs.html): failed to open stream: No such file or directory in /var/www/html/legacy/vue/5.8.3/index.php on line 143