<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Vue.js中css动画的应用</title>
    <style type="text/css">
        .donghua-enter-active{
            animation: donghua01 3s;
        }
        .donghua-leave-active{
            animation: donghua01 3s reverse;
        }

        @keyframes donghua01 {
            0%{
                transform: scale(0.5);
            }
            50%{
                transform: scale(1);
            }
            100%{
                transform: scale(1.5);
            }
        }
    </style>
</head>
<body>
    <div id="app">
        <button v-on:click="show = !show">点我</button>
        <transition name="donghua">
            <p v-if="show">欢迎大家学习vue教程</p>
        </transition>
    </div>

    <script src="../js/vue.js"></script>

    <script>
        let vm = new Vue({
            el:'#app',
            data:{
                show:true
            }
        });
    </script>
</body>
</html>