zoukankan      html  css  js  c++  java
  • 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>
    
    
    
    
  • 相关阅读:
    集合合并
    非递减有序集合合并
    有序的双链表的实现
    单链表的实现
    构造有序的单链表
    约瑟夫环问题
    javaweb学习笔记
    Intellij IDEA快捷键
    JAVA:创建类和对象
    JAVA:成员变量和局部变量的区别
  • 原文地址:https://www.cnblogs.com/lzb1234/p/10776130.html
Copyright © 2011-2022 走看看