jQuery插件Skippr實(shí)現(xiàn)焦點(diǎn)圖幻燈片特效
更新時(shí)間:2015年04月12日 20:23:48 投稿:hebedich
Skippr 是一個(gè)超級簡單的 jQuery 幻燈片插件。只是包括你的網(wǎng)頁中引入 jquery.skippr.css 和 jquery.skippr.js 文件就能使用了。Skippr 能夠自適應(yīng)窗口寬度,而且導(dǎo)航是獨(dú)特的條形導(dǎo)航。
史上效果最好的焦點(diǎn)圖幻燈片jQuery插件Skippr,輕量級插件、響應(yīng)式布局插件,強(qiáng)大的參數(shù)自定義
配置,可自定義切換速度、切換方式、是否顯示左右箭頭、是否自動播放、自動播放間隔時(shí)間等配置
參數(shù),調(diào)用插件也非常簡單易用,調(diào)用方式下面介紹下:
1.加載jQuery和插件
<link rel="stylesheet" href="css/jquery.skippr.css"> <script src="js/jquery.min.js"></script> <script src="js/jquery.skippr.min.js"></script>
2.HTML內(nèi)容
<div id="container"> <div id="theTarget"> <div style="background-image: url(img/image1.jpg)"></div> <div style="background-image: url(img/image2.jpg)"></div> <div style="background-image: url(img/image3.jpg)"></div> <div style="background-image: url(img/image4.jpg)"></div> <div style="background-image: url(img/image5.jpg)"></div> </div> </div>
3.函數(shù)調(diào)用
<script> $(document).ready(function(){ $("#theTarget").skippr({ transition: 'slide', speed: 1000, easing: 'easeOutQuart', navType: 'block', childrenElementType: 'div', arrows: true, autoPlay: false, autoPlayDuration: 5000, keyboardOnAlways: true, hidePrevious: false }); }); </script>
參數(shù)配置解釋
transition :(fade/slide)切換方式
speed : 切換速度(毫秒)
easing :切換效果(easeOutQuart)
navType :下面導(dǎo)航類型(block/bubble)
arrows :是否有箭頭(true/false)
autoPlay :是否自動播放(true/false)
autoPlayDuration : 自動播放間隔(毫秒)
keyboardOnAlways :是否支持鍵盤切換(true/false)
hidePrevious :是否隱藏第一張已經(jīng)切換后的箭頭(true/false)
以上所述就是本文的全部內(nèi)容了,希望大家能夠喜歡。
您可能感興趣的文章:
- Jquery幻燈片特效代碼分享?鼠標(biāo)點(diǎn)擊按鈕時(shí)切換(1)
- jquery簡單實(shí)現(xiàn)幻燈片的方法
- jquery實(shí)現(xiàn)簡單的自動播放幻燈片效果
- jQuery插件animateSlide制作多點(diǎn)滑動幻燈片
- jQuery插件slick實(shí)現(xiàn)響應(yīng)式移動端幻燈片圖片切換特效
- Jquery實(shí)現(xiàn)仿騰訊娛樂頻道焦點(diǎn)圖(幻燈片)特效
- jQuery通過Ajax返回JSON數(shù)據(jù)
- jQuery中使用each處理json數(shù)據(jù)
- 基于JSON格式數(shù)據(jù)的簡單jQuery幻燈片插件(jquery-slider)
相關(guān)文章
jQuery實(shí)現(xiàn)使用sort方法對json數(shù)據(jù)排序的方法
這篇文章主要介紹了jQuery實(shí)現(xiàn)使用sort方法對json數(shù)據(jù)排序的方法,涉及jQuery基于ajax針對json格式文件數(shù)據(jù)的動態(tài)載入與排序相關(guān)操作技巧,需要的朋友可以參考下2018-04-04JQuery點(diǎn)擊事件回到頁面頂部效果的實(shí)現(xiàn)代碼
下面小編就為大家?guī)硪黄狫Query點(diǎn)擊事件回到頁面頂部效果的實(shí)現(xiàn)代碼。小編覺得挺不錯(cuò)的,現(xiàn)在就分享給大家,也給大家做個(gè)參考。一起跟隨小編過來看看吧2016-05-05jquery輪播的實(shí)現(xiàn)方式 附完整實(shí)例
這篇文章主要介紹了jquery輪播的實(shí)現(xiàn)方式,文中分享了jQuery輪播完整實(shí)例,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下2016-07-07jQuery Mobile中的button按鈕組件基礎(chǔ)使用教程
jQuery Mobile中的button默認(rèn)提供了很多用于制作移動Web頁面按鈕的屬性,這里我們來整理一下jQuery Mobile中的button按鈕組件基礎(chǔ)使用教程,需要的朋友可以參考下2016-05-05jquery關(guān)于頁面焦點(diǎn)的定位(文本框獲取焦點(diǎn)時(shí)改變樣式 )
用戶在輸入文字時(shí),如果能高亮顯示正在輸入的那個(gè)文本框的話,會更人性化些,下面就使用jQuery來實(shí)現(xiàn)。2010-09-09