animate.css
Vue动画 (vue-animated)
transition component for Animate.css.
Animate.css的过渡组件。
安装 (Installation)
Download the project using your favorite package manager:
使用您最喜欢的包管理器下载项目:
npm install @codekraft-studio/vue-animated
yarn add @codekraft-studio/vue-animated
Then load it in your project:
然后将其加载到您的项目中:
import VueAnimated from '@codekraft-studio/vue-animated'
Vue.use(VueAnimated)
Than use it in your application as you would with transitions:
就像在转换中那样在应用程序中使用它:
<AnimatedTransition>
<div v-if="show" class="box"></div>
</AnimatedTransition>
Or customize it as you want, it will adapt the css animation to your settings
或根据需要对其进行自定义,它将使CSS动画适应您的设置
<AnimatedTransition enter="slideInDown" leave="slideInDown" duration="5000">
<!-- Normal transition content -->
</AnimatedTransition>
项目设置 (Project setup)
npm install
编译和热重装以进行开发 (Compiles and hot-reloads for development)
npm run serve
编译并最小化生产 (Compiles and minifies for production)
npm run build
运行测试 (Run your tests)
npm run test
整理和修复文件 (Lints and fixes files)
npm run lint
运行单元测试 (Run your unit tests)
npm run test:unit
翻译自: https://vuejsexamples.com/transition-component-for-animate-css/
animate.css
本文介绍了一个基于Vue的animate.css过渡组件,该组件允许在Vue应用中轻松实现各种CSS动画效果。通过简单的配置,可以自定义动画类型、持续时间和过渡效果,使其完美适应您的项目需求。

8837

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



