国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 網(wǎng)站 > WEB開(kāi)發(fā) > 正文

jquery.roundabout.js實(shí)現(xiàn)3D圖片層疊旋轉(zhuǎn)木馬切換

2024-04-27 15:01:47
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友

最近項(xiàng)目中需要實(shí)現(xiàn)3D圖片層疊旋轉(zhuǎn)木馬切換的效果,于是用到了jquery.roundabout.js。

兼容性如圖:

html結(jié)構(gòu)代碼:

<div id="featured-area">     <ul>         <li><img src="images/fnfast.jpg"/></li>        <li><img src="images/photoshop_plus.jpg"/></li>          <li><img src="images/speedometer.jpg"/></li>         <li><img src="images/photoshop_plus.jpg"/></li>      </ul>    <a href="javascr class="ban_l_btn"></a>    <a href="Javascript:void(0)" class="ban_r_btn"></a></div>

CSS樣式:

#featured-area{height:337px;width:1200px;margin:40px auto 0 auto;position:relative;}.roundabout-holder{list-style:none;width:500px;height:300px;margin:0px auto;}.roundabout-moveable-item{font-size:12px!important;height:300px;width:600px;cursor:pointer;padding:5px;border:1px solid #aaaaaa;-webkit-border-radius:5px;-moz-border-radius:5px;background:#f9f9f9;}.roundabout-moveable-item img{height:100%;width:100%;background-color:#FFFFFF;margin:0;}.roundabout-in-focus{cursor:auto;}.roundabout-in-focus:hover{-webkit-box-shadow:0px 0px 20px #787878;-moz-box-shadow:0px 0px 20px #787878;background:#f9f9f9;}.roundabout-holder span{display:none;}.roundabout-in-focus:hover span{display:inline;position:absolute;bottom:5px;right:5px;padding:8px 20px;background:#f9f9f9;color:#3366cc;z-index:999;-webkit-border-top-left-radius:5px;-moz-border-radius-topLeft:5px;border-left:1px solid #aaaaaa;border-top:1px solid #aaaaaa;}.roundabout a:active, .roundabout a:focus, .roundabout a:visited{outline:none;text-decoration:none;}.roundabout li{margin:0}#featured-area .ban_l_btn,#featured-area .ban_r_btn{ position: absolute; top: 50%;margin-top:-34px; left:-1px; display: block; width: 65px; height: 68px; background: url(../images/wid65Btn.png) 0 0 ; z-index: 9; overflow: hidden; }#featured-area .ban_r_btn{ left:auto; right:-1px; background-position: -65px 0; }#featured-area ul li div{width:100%;height: 100%;}

 

引入的js

<script type="text/javascript" src="js/jquery-1.11.3.min.js"></script><script type="text/javascript" src="js/jquery.roundabout-1.0.min.js"></script> <script type="text/javascript" src="js/jquery.easing.1.3.js"></script> 

 

調(diào)用的一般形式:

 

實(shí)現(xiàn)的效果如圖:

需要查看demo,點(diǎn)擊下載

更多詳解請(qǐng)查看地址:http://demo.niutuku.com/js/20/3/

當(dāng)然該插件可擴(kuò)展其它更多效果,如jQuery.Roundabout.js制作圖片傾斜層疊切換效果,參考地址:http://www.uedsc.com/jquery-roundabout-js.html


發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 唐河县| 曲周县| 仁化县| 阳山县| 玉门市| 句容市| 小金县| 龙泉市| 华蓥市| 保亭| 苏州市| 绥宁县| 宁波市| 洛阳市| 奉贤区| 澜沧| 柞水县| 大余县| 拜泉县| 郎溪县| 衡山县| 会宁县| 康乐县| 宜春市| 永昌县| 旬邑县| 行唐县| 临沂市| 余干县| 黎川县| 托里县| 关岭| 北海市| 兴安县| 东辽县| 若尔盖县| 芦溪县| 郴州市| 蕲春县| 大荔县| 乡城县|