Animate On Scroll
Vue Bootstrap Animate on Scroll - Bootstrap 4 & Material Design
Note: This documentation is for an older version of Bootstrap (v.4). A
newer version is available for Bootstrap 5. We recommend migrating to the latest version of our product - Material Design for
Bootstrap 5.
Go to docs v.5
The mdb-animate-on-scroll
directive allows to activate the
animation after the element was scrolled into the viewport.
Basic usage
Step 1: Import mdbAnimateOnScroll directive from 'mdbvue'
Step 2: Add mdbAnimateOnScroll to directives
Step 3: Pick an animation style from the list of animations and set the directive equal to its name:
Step 4: Customize your animation according to your needs by passing an object to a v-mdb-animate-on-scroll directive. Apart from animation class you can specify delay or position - delay takes time as an argument (in milliseconds) while position is an additional percent of a view port height user has to scroll before an animation starts.