• 2019.4.24 3D效果滚筒导航练习


    效果图:

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

    代码:

    <!DOCTYPE html>
    <html>
    	<head>
    		<meta charset="UTF-8">
    		<title></title>
    		<style type="text/css">
    			.all {
    				 505px;
    				margin: 100px auto;
    				overflow: hidden;
    			}
    			.block {
    				 100px;
    				height: 50px;
    				position: relative;
    				transform-style:preserve-3d ;
    				transition: all 1s; 
    				float: left;
    			}
    			.block div {
    				 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>
    
    
    
    
  • 相关阅读:
    暂存。2
    暂存。
    dom兼容性问题3 元素操作
    一个查看Access数据库密码的工具
    解除IIS配置节锁定
    解决cef中title不现实tooltip的问题
    创建.symlnk文件
    查询orcale运行的SQL语句记录
    跨域http头
    C#抓取天气数据
  • 原文地址:https://www.cnblogs.com/lzb1234/p/10776130.html
Copyright © 2020-2023  润新知