js实现索引图片切换效果

js实现索引图片切换效果

具体代码如下

html代码:

<div> <img src="https://www.jb51.net/img/1.jpg" /> <img src="https://www.jb51.net/img/2.jpg" /> <img src="https://www.jb51.net/img/3.jpg" /> </div>

css代码:

.ft-prev, .ft-next { background-color: #000; padding: 0 10px; color:#fff; }

js代码:

$(document).ready(function () { $('#slideshowHolder').jqFancyTransitions({ effect: '', // wave, zipper, curtain width: 500, // width of panel height: 700, // height of panel strips: 20, // number of strips delay: 5000, // delay between images in ms stripDelay: 50, // delay beetwen strips in ms titleOpacity: 0.7, // opacity of title titleSpeed: 1000, // speed of title appereance in ms position: 'alternate', // top, bottom, alternate, curtain direction: 'fountainAlternate', // left, right, alternate, random, fountain, fountainAlternate navigation: true, // prev and next navigation buttons links: true // show images as links }); });

以上就是js实现索引图片切换效果的主要代码,希望对大家动手实现图片切换效果。

您可能感兴趣的文章:

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wgzjww.html