当前位置: 移动技术网 > IT编程>网页制作>CSS > Vue项目在HTML中使用Animate.cssdonghu动画库的实例讲解

Vue项目在HTML中使用Animate.cssdonghu动画库的实例讲解

2019年04月30日  | 移动技术网IT编程  | 我要评论
在html中怎样使用 1.<link rel="stylesheet" href="js/animate.css"> <

在html中怎样使用

1.<link rel="stylesheet" href="js/animate.css">

<transition

            enter-active-class='animated bounce'

            leave-active-class='animated bounce'

        >

            <h1 v-show='show'>hello animate</h1>

        </transition>

        <button @click='head' type="button">start</button>

其中最主要的是enter-active-class(进入)和leave-active-class(离开)这两个类后面必须加animated

如果需要在刚进入页面的时候出现动画

<transition

            appear

            enter-active-class='animated bounce'

            leave-active-class='animated bounce'

            appear-active-class='animated bounce'

        >

            <h1 v-show='show'>hello animate</h1>

        </transition>

        <button @click='head' type="button">start</button>

这个需要加入appear这个属性和appear-active-class这个类动画

如您对本文有疑问或者有任何想说的,请 点击进行留言回复,万千网友为您解惑!

相关文章:

验证码:
移动技术网