jQuery實現(xiàn)垂直半透明手風琴特效代碼分享
今天我們來分享一款基于jQuery的橫向手風琴圖片輪播焦點圖特效源碼。手風琴效果即圖片一張張層疊在一起,鼠標滑過圖片時即可展開完整的圖片,這樣的效果很常見,所以應(yīng)用也很廣泛,大家可以試試這款jQuery焦點圖。
運行效果圖:
---------------------------------效果演示 源碼下載---------------------------------

為大家分享的jQuery半透明抽屜式手風琴代碼如下
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jQuery半透明抽屜式手風琴代碼</title>
<style type="text/css">
*{margin:0;padding:0;list-style-type:none;}
a,img{border:0;text-decoration:none;}
body{font:12px/180% Arial, Helvetica, sans-serif, "新宋體";}
.pic{width:1100px;height:430px;margin:70px auto 0;}
.pic ul li{list-style:none;width:100px;height:429px;float:left;}
.pic .l1{background-image:url(img/1.jpg);}
.pic .l2{background-image:url(img/2.jpg);}
.pic .l3{background-image:url(img/3.jpg);}
.pic .l4{background-image:url(img/4.jpg);width:789px;}
.txt{width:100px; height:429px;background:#000;filter:alpha(opacity=50);background:rgba(0,0,0,.5);}
.txt p{color:#fff;font-family:"微軟雅黑";float:left;position:relative;}
.txt .p1{font-size:12px;width:12px;margin:25px 25px 0 20px;}
.txt .p2{font-size:14px;width:14px;margin-top:25px;}
</style>
</head>
<body>
<div class="pic">
<ul>
<li class="l1">
<a href="http://chabaoo.cn" target="_blank">
<div class="txt">
<p class="p1">作者 : 走天涯</p>
<p class="p2">我的個人拉薩之旅||故事之城</p>
</div>
</a>
</li>
<li class="l2">
<a href="http://chabaoo.cn" target="_blank">
<div class="txt">
<p class="p1">作者 : 走天涯</p>
<p class="p2">我的個人拉薩之旅||故事之城</p>
</div>
</a>
</li>
<li class="l3">
<a href="http://chabaoo.cn" target="_blank">
<div class="txt">
<p class="p1">作者 : 走天涯</p>
<p class="p2">我的個人拉薩之旅||故事之城</p>
</div>
</a>
</li>
<li class="l4">
<a href="http://chabaoo.cn" target="_blank">
<div class="txt">
<p class="p1">作者 : 走天涯</p>
<p class="p2">我的個人拉薩之旅||故事之城</p>
</div>
</a>
</li>
</ul>
</div>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
$(".pic ul li").hover(function(){
$(this).stop(true).animate({width:"789px"},500).siblings().stop(true).animate({width:"100px"},500);
});
</script>
</body>
</html>
以上就是為大家分享的jQuery半透明抽屜式手風琴代碼,希望大家可以喜歡。
相關(guān)文章
ASP.NET jQuery 實例13 原創(chuàng)jQuery文本框字符限制插件-TextArea Counter
這節(jié)介紹一個自己寫的jQuery文本框字符限制插件,至于如何寫插件,我這里就不多講了,可以查看相關(guān)介紹,這里主要介紹下該插件的功能2012-02-02
JQuery判斷radio(單選框)是否選中和獲取選中值方法總結(jié)
這篇文章主要介紹了JQuery判斷radio(單選框)是否選中和獲取選中值方法總結(jié),本文講解了利用獲取選中值判斷選中、使用checked屬性判斷選中、jquery獲取radio單選按鈕的值、獲取一組radio被選中項的值、設(shè)置單選按鈕被選中等內(nèi)容,需要的朋友可以參考下2015-04-04
web的各種前端打印方法之jquery打印插件PrintArea實現(xiàn)網(wǎng)頁打印
jquery打印插件PrintArea實現(xiàn)網(wǎng)頁打印,不可思議吧,接下來為您介紹它的使用方法及操作步驟,感興趣的朋友可以了解下2013-01-01
jQuery EasyUI 選項卡面板tabs的使用實例講解
下面小編就為大家分享一篇jQuery EasyUI 選項卡面板tabs的使用實例講解,具有很好的參考價值,希望對大家有所幫助。一起跟隨小編過來看看吧2017-12-12
jquery ajax 同步異步的執(zhí)行 return值不能取得的解決方案
jquery ajax 同步異步的執(zhí)行 return值不能取得的解決方案,需要的朋友可以參考下。2012-01-01

