要点:
<transition
appear
name="animate__animated animate__bounce"
enter-active-class="animate__rubberBand"
leave-active-class="animate__bounceOut"
>
使用步骤:
步骤一进行安装:

步骤二:引入
由于不是js而是css所以不需要写成 import xxx from ‘xxx’ 这样 直接写import ‘xxx’

步骤三 配置使用第三方库
animate__animated animate__bounce
步骤四:添加第三方库中动画
使用两个配置属性 enter-active-class 和leave-active-class
点击复制到对应的属性中去
exit表示的为离开


本文介绍如何使用Animate.css库实现网页过渡效果。具体步骤包括安装库、引入样式文件、配置动画类名等。通过设置enter-active-class和leave-active-class属性,可以轻松添加进入和离开动画。
1248

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



