码迷,mamicode.com
首页 > Web开发 > 详细

html+css实现3D旋转图片展示

时间:2015-02-25 18:40:59      阅读:246      评论:0      收藏:0      [点我收藏+]

标签:web   html   css   图片   3d   

<strong><span style="font-size:12px;"><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>MyHtml.html</title>
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
	<style type="text/css">
		*{margin:0px ; padding:0px}
		body{background:url("imgs/bg.jpg")}
		.list{width:1200px; height:700px;background:rgba(0,0,0,0.3 );
			box-shadow:0px 0px 5px #000;margin:20px auto;}
		.list ul{padding:2px 0px;list-style-type:none;}
		.list ul li{width:240px;height:256px;
			float:left;margin:36px 25px;padding:5px;
			perspective:1000px;
			}
		.list .move{width:240px;height:256px;transform-style:preserve-3D;
			transform:translateZ(-30px);
			/*延长时间 */
			transition:transform 12s}
		.list .move .poster,.list .move .infor{position:absolute;
			border:1px solid #99FF00;width:230px;
			height:246px;
			backface-visibility:hidden;
			}
		.list .move .poster{
			transform:translateZ(130px);
			}
		.list .move .infor{
			transform:rotateY(90deg) translateZ(130px);
			}
		.list ul li:hover .move{
			transform:rotateY(-88deg) translateZ(20px);
			}
		.list ul li:hover .move .poster,.list .move .infor{
			border-radius:12px;box-shadow:0px 0px 6px #CC00CC;overflow:hidden;
			}
	</style>
  </head>
  <body>
  	<div class="list">
  		<ul>
  			<li>
				<div class="move">
					<div class="poster">
						<img src="imgs/1.jpg" width=230px height=246px/>
					</div>
					<div class="infor">
						<img src="imgs/2.jpg" width=230px height=246px/>
					</div>
				</div>
			</li>
			<li>
				<div class="move">
					<div class="poster">
						<img src="imgs/3.jpg" width=230px height=246px/>
					</div>
					<div class="infor">
						<img src="imgs/4.jpg" width=230px height=246px/>
					</div>
				</div>
			</li>
			<li>
				<div class="move">
					<div class="poster">
						<img src="imgs/5.jpg" width=230px height=246px/>
					</div>
					<div class="infor">
						<img src="imgs/6.jpg" width=230px height=246px/>
					</div>
				</div>
			</li>
			<li>
				<div class="move">
					<div class="poster">
						<img src="imgs/7.jpg" width=230px height=246px/>
					</div>
					<div class="infor">
						<img src="imgs/8.jpg" width=230px height=246px/>
					</div>
				</div>
			</li>
			<li>
				<div class="move">
					<div class="poster">
						<img src="imgs/9.jpg" width=230px height=246px/>
					</div>
					<div class="infor">
						<img src="imgs/10.jpg" width=230px height=246px/>
					</div>
				</div>
			</li>
			<li>
				<div class="move">
					<div class="poster">
						<img src="imgs/11.jpg" width=230px height=246px/>
					</div>
					<div class="infor">
						<img src="imgs/12.jpg" width=230px height=246px/>
					</div>
				</div>
			</li>
			<li>
				<div class="move">
					<div class="poster">
						<img src="imgs/13.jpg" width=230px height=246px/>
					</div>
					<div class="infor">
						<img src="imgs/14.jpg" width=230px height=246px/>
					</div>
				</div>
			</li>
			<li>
				<div class="move">
					<div class="poster">
						<img src="imgs/15.jpg" width=230px height=246px/>
					</div>
					<div class="infor">
						<img src="imgs/16.jpg" width=230px height=246px/>
					</div>
				</div>
			</li>
			<li>
				<div class="move">
					<div class="poster">
						<img src="imgs/17.jpg" width=230px height=246px/>
					</div>
					<div class="infor">
						<img src="imgs/18.jpg" width=230px height=246px/>
					</div>
				</div>
			</li>
			<li>
				<div class="move">
					<div class="poster">
						<img src="imgs/19.jpg" width=230px height=246px/>
					</div>
					<div class="infor">
						<img src="imgs/20.jpg" width=230px height=246px/>
					</div>
				</div>
			</li>
			<li>
				<div class="move">
					<div class="poster">
						<img src="imgs/21.jpg" width=230px height=246px/>
					</div>
					<div class="infor">
						<img src="imgs/22.jpg" width=230px height=246px/>
					</div>
				</div>
			</li>
  		</ul>
  	</div>
  </body>
</html>
</span></strong>

技术分享技术分享

html+css实现3D旋转图片展示

标签:web   html   css   图片   3d   

原文地址:http://blog.csdn.net/u012651389/article/details/43938769

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!