之前在静态html中用过scrollrevealjs,效果特别好,今天想着把这个效果放到vue项目里,网上搜了一把最后发现还是官方文档靠谱,用法很简单
官方文档 :
https://scrollrevealjs.org/
https://www.npmjs.com/package/vue-scroll-reveal
- 安装
npm install --save vue-scroll-reveal
- 引用
import VueScrollReveal from 'vue-scroll-reveal';
Vue.use(VueScrollReveal,{
class