zoukankan      html  css  js  c++  java
  • vue 购买弹出框 动画

    <!DOCTYPE html>
    <html>

    <head>
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" type="text/css" href="css/animate.css" />

    <style type="text/css">
    .dv {
    200px;
    height: 400px;
    background-color: black;
    transform: translateY(100%);
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 5;
    }
    .btn {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 10;
    }
    .dis {

    }
    </style>
    </head>

    <body>
    <div id="app">
    <div class="dv" v-bind:class="{animated:da,slideOutDown:isactive,slideInUp:!isactive}">

    </div>
    <button type="button" v-on:click="open">点击</button>
    <button type="button" v-on:click="close">点击2</button>
    </div>
    </body>
    <script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript">
    var app = new Vue({
    el: '#app',
    data: {
    isactive: true,
    da:false
    },
    methods: {
    open: function() {
    this.isactive = false;
    this.da=true;
    },
    close:function () {
    this.isactive=true;
    }
    }
    })
    </script>

    </html>

  • 相关阅读:
    静态内存不能跨函数使用
    多级指针
    数组大小的动态分配
    luoguP1629 邮递员送信
    luoguP1119 灾后重建
    luoguP1395 会议
    树的重心
    luoguP5536 【XR-3】核心城市
    树的直径
    luoguP5836 [USACO19DEC]Milk Visits S
  • 原文地址:https://www.cnblogs.com/nns4/p/6952202.html
Copyright © 2011-2022 走看看