VueJS Dependency - Vue-Animate-Onscroll
vue-animate-onscroll
A simple Vue directive that animates elements as they scroll into view.
Installation and Setup
animate.css
remember to install or import
animate.cssfirst.install
1
npm i v-animate-css
setup in
main.js1
2
3import VAnimateCss from 'v-animate-css'
Vue.use(VAnimateCss)
vue-animate-onscroll
install
1
npm install vue-animate-onscroll
setup in
main.js1
2
3import VueAnimateOnscoll from 'vue-animate-onscroll'
Vue.use(VueAnimateOnscoll)
Usage
Bind
- use
v-animate-onscrollto bind for a element1
<div v-animate-onscroll="'animated fadeIn'"></div>
- use
Effect
- the effect name is totally same with animate.css
- examples:
1
2<div v-animate-onscroll="'animated fadeIn'">fadeIn</div>
<div v-animate-onscroll="'animated backInDown'">backInDown</div>
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.


