Js achieves index image switching, and js achieves index Switching

Source: Internet
Author: User

Js achieves index image switching, and js achieves index Switching

This article describes the code for js to implement index image switching. Share it with you for your reference. The details are as follows:
The running effect is as follows:

The Code is as follows:

Html code:

<div id="slideshowHolder">                </div>

Css code:

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

Js Code:

$(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      });    });

The above is the main code for js to implement the index image switching effect, and we hope to implement the image switching effect for everyone.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.