基於 html5的 jquery 輪播外掛程式 flickerplate

來源:互聯網
上載者:User

標籤:wan   select   class   options   pac   contain   either   apple   外掛程式   

https://github.com/chrishumboldt/Flickerplate
官網

 
  1. <link href="${baseURL}/themes/default/css/flickerplate.css" rel="stylesheet" type="text/css">
  2. <script src="${baseURL}/themes/default/js/hammer-v2.0.3.js"></script>
  3. <script src="${baseURL}/themes/default/js/flickerplate.js"></script>

引入上面3個   hammer-v是響應式用到的支援觸控

 
  1. <div class="lb_container" style="height: 200px;">
  2. <ul>
  3. <c:forEach items="${requestScope.housephotoes}" var="housev">
  4. <li data-background="${housev.APPPHOTOURL}">
  5. </li>
  6. </c:forEach>
  7. </ul>
  8. </div>

上面是設定背景圖片的  ,  官網只提供了設定普通文字 , 只是在li 下面加兩個標籤即可

<li data-background="image-url.jpg">            <div class="flick-title">Example Heading</div>            <div class="flick-sub-text">Sub Text</div>        </li>


最新版初始化
 
  1. new flickerplate({
  2. selector: ‘.lb_container‘,
  3. animation: ‘transition-fade‘,
  4. autoFlick: false,
  5. dotAlignment: ‘right‘,
  6. theme: ‘dark‘
  7. });


api 解釋還沒有中文

Name Default Options Description
animation transform-slide transform-slide, transform-slide, transition-fade, transition-slide Choose the animation type you want.
arrows true true, false Arrows are used to navigate back and forth between the flicks.
arrowsConstraint false true, false When you get to the end of the flicks pressing the next arrow will navigate you to the beginning again should you have a false constraint. The same applies to the previous arrow.
autoFlick true true, false Sets the flick to run automatically. A manual flick resets the delay.
autoFlickDelay 10 Set the delay (in seconds) between each auto flick.
dotAlignment center center, left, right Set the horizontal alignment of the dot navigation.
dots true true, false Dot navigation is used to indicate and navigate between the flicks.
position 1 Set the starting flick.
theme light light, dark Currently two options, light and dark. This will set the font colour, block text colour, arrows and dots to either dark or light.

但是有原版的解釋  對照參考即可
屬性/方法 類型 預設值 說明
arrows 布爾值 true 顯示左右箭頭控制
arrows_constraint 布爾值 false 左右到頭了禁止點擊
auto_flick 布爾值 true 自動播放
auto_flick_delay 整數 10 自動播放間隔,以秒為單位
block_text 布爾值 true 文字顯示背景陰影
dot_navigation 布爾值 true 顯示圓點導航
dot_alignment 字串 center 圓點導航位置
flick_animation 字串 transition-slide 動畫切換方式,可選 transition-slide、transform-slide、jquery-slide、scroller-slide 4種
flick_position 整數 1
inner_width 布爾值 false
theme 字串 light 設定主題,可選 light、dark 2種








基於 html5的 jquery 輪播外掛程式 flickerplate

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.