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