首先要去你的项目里终端安装它,npm install animate.css 。
安装完后就在需要的组件里引入它,因为它不是js类型,所以直接import "animate.css" 引入。
引入后需要动画的<transition>中的name属性必须为name:"animate_animated animate_bounce",然后还有一个新的属性enter-active-class="xxx" 这是进入的 leave-active-class="xxx"。xxx动画效果可以去npm官网上选择Animate.css | A cross-browser library of CSS animations.
本文指导如何在项目中安装并使用Animate.css进行CSS动画,介绍了必要的引入步骤、过渡元素配置以及如何选择动画效果。
841

被折叠的 条评论
为什么被折叠?



