<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>使用animate.css动画库控制vue.js过渡效果</title>
    <script src="vue.js"></script>
    <link rel="stylesheet" href="animate.css">
</head>
<body>

<div >
    <button @click="type=!type">显示/隐藏</button>
    <transition enter-active-class="animated fadeOutDown" leave-active-class="animated fadeInDown">
        <h1 v-if="type">http://www.baidu.com百度一下就知道</h1>
    </transition>
</div>

<script>
    new Vue({
        el: "#hdcms",
        data:{
            type:false
        }
    });
</script>
</body>

</html>

  

相关文章:

  • 2021-04-01
  • 2021-12-08
  • 2021-11-18
  • 2022-12-23
  • 2021-12-03
  • 2021-12-13
  • 2022-12-23
猜你喜欢
  • 2021-09-11
  • 2021-06-06
  • 2022-12-23
  • 2022-12-23
  • 2021-11-13
  • 2021-12-25
  • 2021-05-01
相关资源
相似解决方案