<div class="food">
<button @click="show=!show">show</button>
<transition name="move">
<p v-show="show">hello</p>
</transition>
</div>
 
 
 
.move-enter{
max-height: 0;
}
.move-enter-active {
max-height: 480px;
-webkit-transition: max-height .5s cubic-bezier(1.0, 0.5, 0.8, 1.0);
transition: max-height .5s cubic-bezier(1.0, 0.5, 0.8, 1.0);
}
.move-leave {
max-height: 0;
}
.move-leave-active {
max-height: 0;
-webkit-transition: max-height .5s cubic-bezier(1.0, 0.5, 0.8, 1.0);
transition: max-height .5s cubic-bezier(1.0, 0.5, 0.8, 1.0);
}

最新文章

  1. butterknife简介及Generate ButterKnife Injections 不出现的问题解决
  2. 【BZOJ】3319: 黑白树
  3. string strSQL = &quot;Select * From Employees;Select * from Customers&quot;;执行两次查询
  4. java中的native方法和修饰符(转)
  5. 用Qt实现简单的视频播放器
  6. JAVA Socket:文件传输
  7. 自定义Attribute 服务端校验 客户端校验
  8. POJ 1258 Agri-Net(最小生成树,模板题)
  9. ASIHTTPRequest 详解 例子
  10. Alsa 读取wave文件,并播放wave 文件
  11. zoj 3981 Balloon Robot
  12. VC++6.0连接MySQL数据库(MySQL API)
  13. 如何将JAR包发布到Maven中央仓库?
  14. Spring MVC 使用介绍(六)—— 注解式控制器(二):请求映射与参数绑定
  15. dbForge Studio for MySQL V8.0 Enterprise
  16. 《Java编程思想第四版》附录 C Java 编程规则
  17. kubernetes 学习资料
  18. mysql学习笔记四 —— AB复制
  19. Markdown 列表
  20. Linux关机操作

热门文章

  1. [从零开始搭网站三]CentOS配置JDK
  2. 前端性能优化之按需加载(React-router+webpack)
  3. leetcode 查找每个元素都出现两次的列表,返回只出现一次的元素
  4. python中字典的用法
  5. 2. maven的配置和使用
  6. include
  7. Linux性能测试工具-UnixBench
  8. HDU 4804 Campus Design
  9. XLua与CSharp交互的采坑点 : 热修复返回值为 Int 的CSharp方法
  10. java8新特性: lambda表达式:直接获得某个list/array/对象里面的字段集合