Often see in some product introduction page, see full screen scrolling effect, today's recommended jquery plugin to everyone, jquery full Screen mouse scrolling page effect plug-in multiscroll.js, support a number of parameters of the custom configuration, Scrollingspeed: Switching speed, Easing: animation effect, navigation:false whether navigation, but also support the event callback function calls, Onleave, afterload, etc., the effect is still good, browser compatibility: IE8, 9, Opera 12, As well as modern browsers, require browsers to support CSS3 properties, recommend learning and use.
How to use:
1. Loading plug-ins and jquery
| 1 2 3 4 |
<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 Content
| 1 2 3 4 5 6 7 8 9 10 11-12 |
<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 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. Function call
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 The |
<script type= "Text/javascript" > $ (document). Ready ( Function () {$ (' #multiscroll '). multiscroll{verticalcentered:true, scrollingspeed:700, easing: ' Easeinquart ', MENU:FA LSE, Sectionscolor: [], Navigation:false, navigationposition: ' Right ', Navigationcolor: ' #000 ', navigationtooltips: [], Loopbottom:false, Looptop:false, Css3:false, paddingtop:0, paddingbottom:0, Normalscrollelements:null, KeyboardScrol Ling:true, Touchsensitivity:5, //events onleave:function (index, Nextindex, direction) {}, Afterload:function (an Chorlink, index) {}, Afterrender:function () {}, Afterresize:function () {},}); }); </sript> |