輪播效果在頁面中經(jīng)常用到的比較普通的照片輪播效果插件:
創(chuàng)新互聯(lián)是專業(yè)的商水網(wǎng)站建設(shè)公司,商水接單;提供成都網(wǎng)站建設(shè)、成都做網(wǎng)站,網(wǎng)頁設(shè)計(jì),網(wǎng)站設(shè)計(jì),建網(wǎng)站,PHP網(wǎng)站建設(shè)等專業(yè)做網(wǎng)站服務(wù);采用PHP框架,可快速的進(jìn)行商水網(wǎng)站開發(fā)網(wǎng)頁制作和功能擴(kuò)展;專業(yè)做搜索引擎喜愛的網(wǎng)站,專業(yè)的做網(wǎng)站團(tuán)隊(duì),希望更多企業(yè)前來合作!
1.Nivo Slider:一種最常見最普通的圖片輪播效果。
Demo地址:http://dev7studios.com/nivo-slider/#/demos
2.Smooth Div Scroll:鼠標(biāo)移動(dòng)到左右鍵上面才開始輪播。
Demo地址: http://www.smoothdivscroll.com/
3.s3Slider jquery plugin:一款帶圖片介紹的輪播效果。
Demo地址:http://www.serie3.info/s3slider/demonstration.html
4.lightbox點(diǎn)擊圖片瀏覽大圖
Demo地址:http://leandrovieira.com/projects/jquery/lightbox/#
5.帶下拉條的輪播效果
Demo地址:http://jqueryfordesigners.com/demo/slider-gallery.html
6.帶縮略圖的左右點(diǎn)擊瀏覽效果
Demo地址:http://tympanus.net/Tutorials/ResponsiveImageGallery/
7.Circular Content Carousel with jquery帶查看詳細(xì)信息的圖片瀏覽效果
Demo地址:http://tympanus.net/Development/CircularContentCarousel/#
官方網(wǎng)址:http://tympanus.net/codrops/2011/08/16/circular-content-carousel/
源碼分析:先上官網(wǎng)下載tympanus插件,加載該插件并設(shè)置參數(shù)
$(
'#ca-container'
).contentcarousel({
// speed for the sliding animation
sliderSpeed : 500,
// easing for the sliding animation
sliderEasing :
'easeOutExpo'
,
// speed for the item animation (open / close)
itemSpeed : 500,
// easing for the item animation (open / close)
itemEasing :
'easeOutExpo'
,
// number of items to scroll at a time
scroll : 1
});
html
<
div
id
=
"ca-container"
class
=
"ca-container"
>
<
div
class
=
"ca-wrapper"
>
<
div
class
=
"ca-item ca-item-1"
>
<
div
class
=
"ca-item-main"
>
<
div
class
=
"ca-icon"
></
div
>
<
h4
>Stop factory farming</
h4
>
<
h5
>
<
span
class
=
"ca-quote"
>“</
span
>
<
span
>Some text...</
span
>
</
h5
>
<
a
href
=
"#"
class
=
"ca-more"
>more...</
a
>
</
div
>
<
div
class
=
"ca-content-wrapper"
>
<
div
class
=
"ca-content"
>
<
h7
>Animals are not commodities</
h7
>
<
a
href
=
"#"
class
=
"ca-close"
>close</
a
>
<
div
class
=
"ca-content-text"
>
<
p
>Some more text...</
p
>
</
div
>
<
ul
>
<
li
><
a
href
=
"#"
>Read more</
a
></
li
>
<
li
><
a
href
=
"#"
>Share this</
a
></
li
>
<
li
><
a
href
=
"#"
>Become a member</
a
></
li
>
<
li
><
a
href
=
"#"
>Donate</
a
></
li
>
</
ul
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"ca-item ca-item-2"
>
...
</
div
>
...
</
div
>
<!-- ca-wrapper -->
</
div
>
<!-- ca-container -->
8.skitte能查看縮略圖的輪播效果
Demo地址:http://www.skitter-slider.net/
9.timelinr聯(lián)動(dòng)輪播
Demo地址:http://www.csslab.cl/2011/08/18/jquery-timelinr/
代碼分析
首先需要下載jquery.timelinr-0.9.53.js插件
然后加載插件
$(function(){
$().timelinr();
});
在 $().timelinr();中設(shè)置插件參數(shù)
參數(shù)
orientation: 'horizontal',定位方向
// value: horizontal | vertical, default to horizontal
containerDiv: '#timeline',當(dāng)前div的id
// value: any HTML tag or #id, default to #timeline
datesDiv: '#dates',時(shí)間div
// value: any HTML tag or #id, default to #dates
datesSelectedClass: 'selected',當(dāng)前選中時(shí)間的樣式
// value: any class, default to selected
datesSpeed: 'normal',輪播的速度
// value: integer between 100 and 1000 (recommended) or 'slow', 'normal' or 'fast'; default to normal
issuesDiv : '#issues',是否使用div
// value: any HTML tag or #id, default to #issues
issuesSelectedClass: 'selected',選擇后是否使用選中樣式
// value: any class, default to selected
issuesSpeed: 'fast',使用的速度
// value: integer between 100 and 1000 (recommended) or 'slow', 'normal' or 'fast'; default to fast
issuesTransparency: 0.2,使用遮罩層的透明度
// value: integer between 0 and 1 (recommended), default to 0.2
issuesTransparencySpeed: 500,使用遮罩層的速度
// value: integer between 100 and 1000 (recommended), default to 500 (normal)
prevButton: '#prev',上一頁id
// value: any HTML tag or #id, default to #prev
nextButton: '#next',下一頁id
// value: any HTML tag or #id, default to #next
arrowKeys: 'false',
// value: true/false, default to false
startAt: 1,開始參數(shù)
// value: integer, default to 1 (first)
autoPlay: 'false',是否允許自動(dòng)輪播
// value: true | false, default to false
autoPlayDirection: 'forward',自動(dòng)輪播方向
// value: forward | backward, default to forward
autoPlayPause: 2000 自動(dòng)輪播間歇
// value: integer (1000 = 1 seg), default to 2000 (2segs)< });
Html代碼
<div id="timeline">
<ul id="dates">
<li><a href="#">date1</a></li>
<li><a href="#">date2</a></li>
</ul>
<ul id="issues">
<li id="date1">
<p>Lorem ipsum.</p>
</li>
<li id="date2">
<p>Lorem ipsum.</p>
</li>
</ul>
<a href="#" id="next">+</a> <!-- optional -->
<a href="#" id="prev">-</a> <!-- optional -->
</div>
10.all in one jquery rotator-content slider基本上能滿足網(wǎng)站首頁輪播所有效果(該插件需要付費(fèi)購買)
Demo地址:http://www.responsivejqueryslider.com/banner_rotator.html
分享題目:常用實(shí)用圖片輪播效果jquery插件
網(wǎng)頁地址:http://aaarwkj.com/article48/pdegep.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供建站公司、App開發(fā)、標(biāo)簽優(yōu)化、電子商務(wù)、響應(yīng)式網(wǎng)站、微信公眾號(hào)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)