首頁 > web前端 > html教學 > html+css实现3D旋转图片展示_html/css_WEB-ITnose

html+css实现3D旋转图片展示_html/css_WEB-ITnose

WBOY
發布: 2016-06-24 11:49:06
原創
1643 人瀏覽過

<strong><span style="font-size:12px;">      <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>      	<div class="list">  		<ul>  			<li>				<div class="move">					<div class="poster">						<img  src="imgs/1.jpg"    style="max-width:90%" height="246px/" alt="html+css实现3D旋转图片展示_html/css_WEB-ITnose" >					</div>					<div class="infor">						<img  src="imgs/2.jpg"    style="max-width:90%" height="246px/" alt="html+css实现3D旋转图片展示_html/css_WEB-ITnose" >					</div>				</div>			</li>			<li>				<div class="move">					<div class="poster">						<img  src="imgs/3.jpg"    style="max-width:90%" height="246px/" alt="html+css实现3D旋转图片展示_html/css_WEB-ITnose" >					</div>					<div class="infor">						<img  src="imgs/4.jpg"    style="max-width:90%" height="246px/" alt="html+css实现3D旋转图片展示_html/css_WEB-ITnose" >					</div>				</div>			</li>			<li>				<div class="move">					<div class="poster">						<img  src="imgs/5.jpg"    style="max-width:90%" height="246px/" alt="html+css实现3D旋转图片展示_html/css_WEB-ITnose" >					</div>					<div class="infor">						<img  src="imgs/6.jpg"    style="max-width:90%" height="246px/" alt="html+css实现3D旋转图片展示_html/css_WEB-ITnose" >					</div>				</div>			</li>			<li>				<div class="move">					<div class="poster">						<img  src="imgs/7.jpg"    style="max-width:90%" height="246px/" alt="html+css实现3D旋转图片展示_html/css_WEB-ITnose" >					</div>					<div class="infor">						<img  src="imgs/8.jpg"    style="max-width:90%" height="246px/" alt="html+css实现3D旋转图片展示_html/css_WEB-ITnose" >					</div>				</div>			</li>			<li>				<div class="move">					<div class="poster">						<img  src="imgs/9.jpg"    style="max-width:90%" height="246px/" alt="html+css实现3D旋转图片展示_html/css_WEB-ITnose" >					</div>					<div class="infor">						<img  src="imgs/10.jpg"    style="max-width:90%" height="246px/" alt="html+css实现3D旋转图片展示_html/css_WEB-ITnose" >					</div>				</div>			</li>			<li>				<div class="move">					<div class="poster">						<img  src="imgs/11.jpg"    style="max-width:90%" height="246px/" alt="html+css实现3D旋转图片展示_html/css_WEB-ITnose" >					</div>					<div class="infor">						<img  src="imgs/12.jpg"    style="max-width:90%" height="246px/" alt="html+css实现3D旋转图片展示_html/css_WEB-ITnose" >					</div>				</div>			</li>			<li>				<div class="move">					<div class="poster">						<img  src="imgs/13.jpg"    style="max-width:90%" height="246px/" alt="html+css实现3D旋转图片展示_html/css_WEB-ITnose" >					</div>					<div class="infor">						<img  src="imgs/14.jpg"    style="max-width:90%" height="246px/" alt="html+css实现3D旋转图片展示_html/css_WEB-ITnose" >					</div>				</div>			</li>			<li>				<div class="move">					<div class="poster">						<img  src="imgs/15.jpg"    style="max-width:90%" height="246px/" alt="html+css实现3D旋转图片展示_html/css_WEB-ITnose" >					</div>					<div class="infor">						<img  src="imgs/16.jpg"    style="max-width:90%" height="246px/" alt="html+css实现3D旋转图片展示_html/css_WEB-ITnose" >					</div>				</div>			</li>			<li>				<div class="move">					<div class="poster">						<img  src="imgs/17.jpg"    style="max-width:90%" height="246px/" alt="html+css实现3D旋转图片展示_html/css_WEB-ITnose" >					</div>					<div class="infor">						<img  src="imgs/18.jpg"    style="max-width:90%" height="246px/" alt="html+css实现3D旋转图片展示_html/css_WEB-ITnose" >					</div>				</div>			</li>			<li>				<div class="move">					<div class="poster">						<img  src="imgs/19.jpg"    style="max-width:90%" height="246px/" alt="html+css实现3D旋转图片展示_html/css_WEB-ITnose" >					</div>					<div class="infor">						<img  src="imgs/20.jpg"    style="max-width:90%" height="246px/" alt="html+css实现3D旋转图片展示_html/css_WEB-ITnose" >					</div>				</div>			</li>			<li>				<div class="move">					<div class="poster">						<img  src="imgs/21.jpg"    style="max-width:90%" height="246px/" alt="html+css实现3D旋转图片展示_html/css_WEB-ITnose" >					</div>					<div class="infor">						<img  src="imgs/22.jpg"    style="max-width:90%" height="246px/" alt="html+css实现3D旋转图片展示_html/css_WEB-ITnose" >					</div>				</div>			</li>  		</ul>  	</div>  </span></strong>
登入後複製

來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板