Initialize plug-in:
Slides is a jquery seamless wheel-map plug-in, support in-diagram element animation, you can customize the animation type
$ (". Slideinner"). Slide ({
slidecontainer: $ ('. Slideinner a '),
effect: ' Easeoutcirc ',//animation type
Autoruntime : 5000,//Automatic Carousel time
slidespeed:1000,//speed
nav:true,//whether or not to display the left or right navigation
autorun:true,//automatically scroll
prevbtn: $ (' A.prev '),//left button
nextbtn: $ (' a.next ')/Right button
});
Compatibility: ie8+, Google, Firefox, 360, QQ, Oupeng, Safi
HTML instance:
Slides the default is to add the Rel property on an animated effect element to an element with the class name Moveelem inside the slider to set the corresponding delay execution time and animation type two properties each slider can add multiple elements at the same time
<body> <div class= "Slides" > <div class= "Slideinner" > <a href= "#" style= "Background:url ( img/slide1.jpg) no-repeat; "
> <div class= "Moveelem img1" rel= "0,easeinoutexpo" > </div> <div class= "Moveelem img2" rel= "150,easeinoutexpo" > </div> </a> <a href= "#" style= "Background:url (img/slide2.jpg) no-repeat" > <div class= "Moveelem img1" rel= "0,easeinoutexpo" > </d iv> </a> <a href= "#" class= "Slide3" style= "Background:url (img/slide3.jpg) no-repeat;"
> <div class= "Moveelem img1" rel= "0,easeinoutexpo" > </div> <div class= "Moveelem img2" rel= "150,easeinoutexpo" > </div> <div class= "Moveelem img3" rel= "300,easeinoutexpo" > </div> </a> <a href=" # "style=" Background:rgb (113, 209, 231); "
> <div class= "Moveelem img1" rel= "0,easeinoutexpo" > </div> <div class= "Moveelem img2" rel= "150,easeinoutexpo" > </div> </a> <a href= "#" style= "Background:rgb (178, 44, 44);"
> <div class= "Moveelem img1" rel= "0,easeinoutexpo" > </div> <div class= "Moveelem img2" rel= "150,easeinoutexpo" > </div> </a> </div> <div class= "nav" > <a class= "prev" href= "# "></a> <a class=" Next "href=" # "></a> </div> </div> </body>
GitHub Address: Https://github.com/727712787/jquery.slides Download Address: https://github.com/727712787/jquery.slides/archive/master.zip
The above mentioned is the entire content of this article, I hope you can enjoy.