SKIPPR is a slide with left and right arrow, index button, slide toggle effect and lightweight, fast
Set up
Introduce Jquery.skippr.css, jquery.js, jquery.skippr.js Note that jquery must be before jquery.skippr.js
Create div element, add background-images style inside div tag<div id= "Container" > <div id= "Myskipper" > <div style= "Background-image:url (css/img/ test1.jpg) "></div> <div style=" Background-image:url (css/img/test2.jpg) "></div> <div style= "Background-image:url (css/img/test3.jpg)" ></div> </div> </div>
StartSelect Target Element Call skipper method
$ (document). Ready (function () {
Options
$ (document). Ready (function () { $ ("#myskipper"). SKIPPR ({transition: ' slide ', speed:1000, navtype: ' Block ', arrows:true, autoplay:false, autoplayduration:5000, keyboardonalways:true, Hideprevious:false
Transition: Specifies the slide transition type, and currently SKIPPR supports either the ' fade ' or ' slide ' approach. Speed: The transition time of the slide is 500 by default.
navtype: The shape of the navigation element. "Block" or "bubble", the default is "block".
Arrows: If the navigation arrows are displayed, the default is true, set to False to hide the arrows.
AutoPlay: Whether to use the slideshow auto-play feature. The default is False. Set to True to enable AutoPlay.
autoplayduration: Set the time in milliseconds, AutoPlay runs, display each slide, the default value is 5000 milliseconds.
hideprevious: If you want to hide the arrow for the first slide, the default is "false".
:
Project Demo Source: XXX