jquery特效的圖片切換外掛程式jqFancyTransitions用法

來源:互聯網
上載者:User

jqfancytransitions是一款便於使用的顯示照片過渡效果的jQuery投影片外掛程式,相容Safari 2 +、Internet Explorer 6 +、Firefox 2 +、3 + 9 +Google瀏覽器等。

使用方法
調用外掛程式js檔案:

<script src="js/jquery.js" type="text/javascript"></script>
<script src="js/jqFancyTransitions.js" type="text/javascript"></script>
外掛程式HTML代碼結構:
<div id='slideshowHolder'>
       <img src='img1.jpg' alt='img1' />
       <img src='img2.jpg' alt='img2' />
       <img src='img3.jpg' alt='img3' />
</div>
外掛程式啟用代碼:
<script>
    $(document).ready( function(){
        $('#slideshowHolder').jqFancyTransitions({ width: 400, height: 300 });
    });
</script>

參數說明
effect    效果選擇:預設''(wave, zipper, curtain)
width    寬度:預設500
height    高度:預設320t
strips    圖片分解條數:預設20
delay    輪播時間:預設5000ms
stripDelay    條數動畫時間:預設50(越大越慢)
titleOpacity    標題透明度:預設0.7
titleSpeed    標題變化速度:預設1000
position    動畫效果:預設alternate(top, bottom, alternate, curtain)
direction    動畫方向:預設fountainAlternate(left, right, alternate, random, fountain, fountainAlternate)
navigation    是否顯示導航:預設false
links    圖片是否帶串連:預設false

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.