效果图:

彩千圣天下第一!(小声bb)

代码:

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
.all {
width: 505px;
margin: 100px auto;
overflow: hidden;
}
.block {
width: 100px;
height: 50px;
position: relative;
transform-style:preserve-3d ;
transition: all 1s;
float: left;
}
.block div {
width: 100px;
height: 50px;
line-height: 50px;
text-align: center;
font-size: 20px;
}
.div1 {
background-color: pink;
transform: translateZ(25px);
}
.div2 {
background-color: yellow;
position: absolute;
top: 0;
left: 0;
transform: rotateX(90deg) translateZ(25px);
}
.block:hover {
transform: rotateX(-90deg);
}
</style>
</head>
<body> <div class="all">
<div class="block">
<div class="div1">cqs</div>
<div class="div2">txdy</div>
</div>
<div class="block">
<div class="div1">cqs</div>
<div class="div2">txdy</div>
</div>
<div class="block">
<div class="div1">cqs</div>
<div class="div2">txdy</div>
</div>
<div class="block">
<div class="div1">cqs</div>
<div class="div2">txdy</div>
</div>
<div class="block">
<div class="div1">cqs</div>
<div class="div2">txdy</div>
</div>
</div>
</body>
</html>

最新文章

  1. Java 接口练习题
  2. 前端之CSS(二)
  3. 使用HttpClient获取网上字符串和位图对象Bitmap
  4. NopCommerce——源代码的组织,以及系统的架构
  5. REVOKE DBA权限要小心
  6. MySQL源码 information_schema新增表
  7. Appium测试时如何关联到Genymotion模拟器
  8. DTO学习系列之AutoMapper(六)----EntityFramework和AutoMapper的婚后生活
  9. python下读取excel文件
  10. 完整的堆栈JavaScript路(十五)HTML5 focus 扩大 (扩展点)
  11. Socket 文件传输
  12. 架构师之路-在Dubbo中开发REST风格的远程调用
  13. 安装xp遇到的问题与如何连接共享的打印机
  14. RAC日常管理
  15. React-typescript-antd 常见问题
  16. windows 环境下 eclipse + maven + tomcat 的 hello world 创建和部署
  17. JavaScript 高级程序设计 第二版
  18. IntelliJ IDEA 项目结构旁边出现 0%classes,0% lines covered
  19. 201709021工作日记--CAS解读
  20. ubuntu下android环境的搭建

热门文章

  1. Web Api 中返回JSON的正确做法(转)
  2. selenium设置代理,基于chrome浏览器
  3. swift学习之-- UIAlertVIewController - uiactionsheet
  4. Java 高级基础——反射
  5. 在spark中启动standalone集群模式cluster问题
  6. 18-11-1 Scrum Meeting 4
  7. [Postgres]Postgres复制表
  8. 饿了么 PostgreSQL 优化之旅
  9. mysql设定或修改密码的三个方法
  10. AJPFX平台介绍