zoukankan      html  css  js  c++  java
  • vue 弹窗滑入滑出动画

    图片效果

    红色部门效果是向下滑出,和向上滑入

    html部分

    <div class="viewhistory-buttom animate_active" :style="editBtnShow==1?'bottom:0;':''"> //editBtnShow默认不能为1(就是不显示),为1就滑出来,
      <div class="empty">全部清空</div>|
      <div class="delete">删除</div>
    </div>

    css部门

      .animate_active{
          transition: all .6s ease-in-out; //这是滑入划出的动画
        }

    .viewhistory-buttom{ position: fixed; bottom: -50%; //默认弹窗在底部-50%的地方 7.5rem; height: .98rem; background-color: #ffffff; box-shadow: 0px 0px 0.1rem 0px rgba(40, 40, 40, 0.31); border: solid 0.01rem #e9e9e9; display: flex; align-items: center; font-size: .32rem; color: #666666; .empty{ 3.7rem; height: 100%; line-height: 0.98rem; text-align: center; } .delete{ 3.7rem; height: 100%; color: #25c2ba; text-align: center; line-height: 0.98rem; } }
  • 相关阅读:
    你的灯亮着么阅读笔记2
    你的灯亮着么阅读笔记1
    梦断代码阅读笔记3
    梦断代码阅读笔记2
    梦断代码阅读笔记1
    百度搜索分析
    有多少1
    寻找“水王”问题
    站立会议
    买书的最低价格问题
  • 原文地址:https://www.cnblogs.com/tlfe/p/12427906.html
Copyright © 2011-2022 走看看