美文网首页
vue中使用 Animate.css

vue中使用 Animate.css

作者: xilong | 来源:发表于2018-10-27 18:13 被阅读7次

1、安装

npm install animate.css --save

2、引入使用

2.1全局引入使用

import animate from ‘animate.css’ 
Vue.use(animate)

2.2 局部引入使用(比较推荐这种方式)

<style lang="scss" scoped>
    @import  '../../../node_modules/animate.css/animate.css';
</style>

相关文章

网友评论

      本文标题:vue中使用 Animate.css

      本文链接:https://www.haomeiwen.com/subject/obwdtqtx.html