jQuery插件multiScroll實(shí)現(xiàn)全屏鼠標(biāo)滾動(dòng)切換頁(yè)面特效
經(jīng)??吹皆谝恍┊a(chǎn)品介紹頁(yè),看到全屏滾動(dòng)的特效,今天推薦款jQuery插件給大家,jQuery全屏鼠標(biāo)滾動(dòng)切換頁(yè)面特效插件multiScroll.js,支持眾多的參數(shù)自定義配置,scrollingSpeed:切換速度、easing:動(dòng)畫效果、navigation:false是否出現(xiàn)導(dǎo)航,還支持事件Callback函數(shù)調(diào)用,onLeave、afterLoad等,效果還是和不錯(cuò)的,瀏覽器兼容方面:IE8, 9, Opera 12、以及現(xiàn)代的瀏覽器,需要瀏覽器支持CSS3屬性,推薦學(xué)習(xí)和使用。

使用方法:
1.加載插件和jQuery
<link rel="stylesheet" type="text/css" href="jquery.multiscroll.css" /> <script src="libs/jquery/1.9.1/jquery.min.js"></script> <script src="vendors/jquery.easings.min.js"></script> <script type="text/javascript" src="jquery.multiscroll.js"></script>
2.HTML內(nèi)容
<div id="multiscroll">
<div class="ms-left">
<div class="ms-section">Some section</div>
<div class="ms-section">Some section</div>
<div class="ms-section">Some section</div>
</div>
<div class="ms-right">
<div class="ms-section">Some section</div>
<div class="ms-section">Some section</div>
<div class="ms-section">Some section</div>
</div>
</div>
3.函數(shù)調(diào)用
<script type="text/javascript">
$(document).ready(function() {
$('#multiscroll').multiscroll{
verticalCentered : true,
scrollingSpeed: 700,
easing: 'easeInQuart',
menu: false,
sectionsColor: [],
navigation: false,
navigationPosition: 'right',
navigationColor: '#000',
navigationTooltips: [],
loopBottom: false,
loopTop: false,
css3: false,
paddingTop: 0,
paddingBottom: 0,
normalScrollElements: null,
keyboardScrolling: true,
touchSensitivity: 5,
//events
onLeave: function(index, nextIndex, direction){},
afterLoad: function(anchorLink, index){},
afterRender: function(){},
afterResize: function(){},
});
});
</sript>
以上所述就是本文的全部?jī)?nèi)容了,希望大家能夠喜歡。
相關(guān)文章
jQuery中innerHeight()方法用法實(shí)例
這篇文章主要介紹了jQuery中innerHeight()方法用法,實(shí)例分析了innerHeight()方法的功能、定義及獲取第一個(gè)匹配元素內(nèi)部區(qū)域高度的使用技巧,需要的朋友可以參考下2015-01-01
jquery 利用show和hidden實(shí)現(xiàn)級(jí)聯(lián)菜單示例代碼
級(jí)聯(lián)菜單的實(shí)現(xiàn)方法有很多,在本文為大家介紹下使用show和hidden輕松實(shí)現(xiàn)下級(jí)聯(lián)效果,感興趣的朋友可以參考下,希望對(duì)大家有所幫助2013-08-08
jQuery 學(xué)習(xí)6 操縱元素顯示效果的函數(shù)
jQuery提供了hide() ,show()對(duì)元素進(jìn)行隱藏和顯示,下面看兩個(gè)函數(shù)的應(yīng)用2010-02-02
jQuery實(shí)現(xiàn)的文字hover顏色漸變效果實(shí)例
這篇文章主要介紹了jQuery實(shí)現(xiàn)的文字hover顏色漸變效果,以完整實(shí)例形式分析了jQuery實(shí)現(xiàn)文字顏色漸變效果的相關(guān)技巧,涉及jQuery插件jquery-ui-1.8.16.custom.min.js的使用,需要的朋友可以參考下2016-02-02
實(shí)例詳解jQuery Mockjax 插件模擬 Ajax 請(qǐng)求
這篇文章主要介紹了實(shí)例詳解jQuery Mockjax 插件模擬 Ajax 請(qǐng)求的相關(guān)資料,需要的朋友可以參考下2016-01-01
jQuery 中msgTips 頂部彈窗效果實(shí)現(xiàn)代碼
最近發(fā)現(xiàn)好多網(wǎng)站都采用頂部彈窗,并且不用用戶手動(dòng)去點(diǎn)擊確定。感覺這樣很方便用戶,下面小編把實(shí)現(xiàn)代碼分享給大家,感興趣的的朋友一起看看吧2017-08-08
jQuery實(shí)現(xiàn)微信長(zhǎng)按識(shí)別二維碼功能
這篇文章主要介紹了jQuery實(shí)現(xiàn)微信長(zhǎng)按識(shí)別二維碼的功能,非常不錯(cuò),具有參考借鑒價(jià)值,對(duì)jquery長(zhǎng)按識(shí)別二維碼的相關(guān)知識(shí)感興趣的朋友一起學(xué)習(xí)吧2016-08-08

