欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

JS中利用swiper實(shí)現(xiàn)3d翻轉(zhuǎn)幻燈片實(shí)例代碼

 更新時間:2017年08月25日 09:16:06   作者:小下  
大家都知道Swiper(Swiper master)是目前應(yīng)用較廣泛的移動端網(wǎng)頁觸摸內(nèi)容滑動js插件。下面這篇文章主要給大家介紹了在JS中利用swiper實(shí)現(xiàn)3d翻轉(zhuǎn)幻燈片的相關(guān)資料,文中給出了完整的示例代碼供大家參考學(xué)習(xí),需要的朋友可以參考借鑒,下面來一起看看吧。

前言

Swiper是純javascript打造的滑動特效插件,面向手機(jī)、平板電腦等移動終端。Swiper能實(shí)現(xiàn)觸屏焦點(diǎn)圖、觸屏Tab切換、觸屏多圖切換等常用效果。Swiper開源、免費(fèi)、穩(wěn)定、使用簡單、功能強(qiáng)大,是架構(gòu)移動終端網(wǎng)站的重要選擇!

本文詳細(xì)的給大家介紹了關(guān)于JS用swiper實(shí)現(xiàn)3d翻轉(zhuǎn)幻燈片的相關(guān)內(nèi)容,分享出來供大家參考學(xué)習(xí),下面話不多說了,來一起看看詳細(xì)的介紹吧。

先上效果圖

使用的是swiper3.0版本coverflow效果,源碼如下

<!DOCTYPE html>
<html lang="zh">
<head>
 <meta charset="utf-8">
 <title>Swiper demo</title>
 <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
 <!-- Link Swiper's CSS -->
 <link  rel="external nofollow" rel="stylesheet">
 <!-- Demo styles -->
 <style>
  body {
   background: #fff;
   font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
   font-size: 14px;
   color: #000;
   margin: 0;
   padding: 0;
  }
  .swiper-container {
   width: 100%;
   padding-top: 50px;
   padding-bottom: 50px;
  }
  .swiper-slide {
   background-position: center;
   background-size: cover;
   height: 170px;
   width: 130px!important;
  }
 </style>
</head>
<body>
 <!-- Swiper -->
 <div class="swiper-container">
  <div class="swiper-wrapper">
   <div class="swiper-slide" style="background-image:url(https://ws1.sinaimg.cn/large/6aedb651gy1fitoce9qqdj204o06o760.jpg)"></div>
   <div class="swiper-slide" style="background-image:url(https://ws1.sinaimg.cn/large/6aedb651gy1fitoce9qqdj204o06o760.jpg)"></div>
   <div class="swiper-slide" style="background-image:url(https://ws1.sinaimg.cn/large/6aedb651gy1fitoce9qqdj204o06o760.jpg)"></div>
   <div class="swiper-slide" style="background-image:url(https://ws1.sinaimg.cn/large/6aedb651gy1fitoce9qqdj204o06o760.jpg)"></div>
   <div class="swiper-slide" style="background-image:url(https://ws1.sinaimg.cn/large/6aedb651gy1fitoce9qqdj204o06o760.jpg)"></div>
   <div class="swiper-slide" style="background-image:url(https://ws1.sinaimg.cn/large/6aedb651gy1fitoce9qqdj204o06o760.jpg)"></div>
   <div class="swiper-slide" style="background-image:url(https://ws1.sinaimg.cn/large/6aedb651gy1fitoce9qqdj204o06o760.jpg)"></div>
   <div class="swiper-slide" style="background-image:url(https://ws1.sinaimg.cn/large/6aedb651gy1fitoce9qqdj204o06o760.jpg)"></div>
   <div class="swiper-slide" style="background-image:url(https://ws1.sinaimg.cn/large/6aedb651gy1fitoce9qqdj204o06o760.jpg)"></div>
   <div class="swiper-slide" style="background-image:url(https://ws1.sinaimg.cn/large/6aedb651gy1fitoce9qqdj204o06o760.jpg)"></div>
   <div class="swiper-slide" style="background-image:url(https://ws1.sinaimg.cn/large/6aedb651gy1fitoce9qqdj204o06o760.jpg)"></div>
   <div class="swiper-slide" style="background-image:url(https://ws1.sinaimg.cn/large/6aedb651gy1fitoce9qqdj204o06o760.jpg)"></div>
  </div>
  <!-- Add Pagination -->
  <div class="swiper-pagination"></div>
 </div>
 <!-- Swiper JS -->
 <script src="https://cdn.bootcss.com/Swiper/3.4.2/js/swiper.jquery.js"></script>
 <script src="https://cdn.bootcss.com/Swiper/3.4.2/js/swiper.js"></script>
 <!-- Initialize Swiper -->
 <script>
  var mySwiper = new Swiper('.swiper-container', {
   effect: 'coverflow',
   slidesPerView: 2,
   centeredSlides: true,
   coverflow: {
    rotate: 0,
    stretch: 30,
    depth: 400,
    modifier: 1,
    slideShadows: true
   }
  })
 </script>
</body>
</html>

總結(jié)

以上就是這篇文章的全部內(nèi)容了,希望本文的內(nèi)容對大家的學(xué)習(xí)或者工作能帶來一定的幫助,如果有疑問大家可以留言交流,謝謝大家對腳本之家的支持。

相關(guān)文章

  • JavaScript數(shù)組去重算法實(shí)例小結(jié)

    JavaScript數(shù)組去重算法實(shí)例小結(jié)

    這篇文章主要介紹了JavaScript數(shù)組去重算法,結(jié)合實(shí)例形式總結(jié)分析了JavaScript數(shù)組去重相關(guān)的讀寫、遍歷、比較、排序等操作及算法改進(jìn)相關(guān)實(shí)現(xiàn)技巧,需要的朋友可以參考下
    2018-05-05
  • 微信小程序上傳圖片并等比列壓縮到指定大小的實(shí)例代碼

    微信小程序上傳圖片并等比列壓縮到指定大小的實(shí)例代碼

    這篇文章主要介紹了微信小程序 上傳圖片并等比列壓縮到指定大小,本文通過實(shí)例代碼給大家介紹的非常詳細(xì),具有一定的參考借鑒價值,需要的朋友可以參考下
    2019-10-10
  • JS設(shè)計模式之命令模式的用法詳解

    JS設(shè)計模式之命令模式的用法詳解

    JavaScript中的命令模式是一種設(shè)計模式,它提供了一種將命令封裝為對象的方式,從而允許我們將請求與實(shí)際執(zhí)行該請求的操作對象解耦,這種模式可以在不同的場景中使用,例如實(shí)現(xiàn)撤銷/重做操作、隊(duì)列任務(wù)等,本文我們將講解命令設(shè)計模式在JS中的使用
    2023-08-08
  • 點(diǎn)擊按鈕出現(xiàn)60秒倒計時的簡單js代碼(推薦)

    點(diǎn)擊按鈕出現(xiàn)60秒倒計時的簡單js代碼(推薦)

    下面小編就為大家?guī)硪黄c(diǎn)擊按鈕出現(xiàn)60秒倒計時的簡單js代碼(推薦)。小編覺得挺不錯的,現(xiàn)在就分享給大家,也給大家做個參考。一起跟隨小編過來看看吧
    2016-06-06
  • JS加密插件CryptoJS實(shí)現(xiàn)AES加密操作示例

    JS加密插件CryptoJS實(shí)現(xiàn)AES加密操作示例

    這篇文章主要介紹了JS加密插件CryptoJS實(shí)現(xiàn)AES加密操作,結(jié)合實(shí)例形式分析了CryptoJS插件的具體設(shè)置與AES加密操作實(shí)現(xiàn)技巧,需要的朋友可以參考下
    2018-08-08
  • javascript 最常用的10個自定義函數(shù)[推薦]

    javascript 最常用的10個自定義函數(shù)[推薦]

    如果不使用類庫或者沒有自己的類庫,儲備一些常用函數(shù)總是有好處的。
    2009-12-12
  • BootStrap導(dǎo)航欄問題記錄

    BootStrap導(dǎo)航欄問題記錄

    這篇文章主要介紹了BootStrap導(dǎo)航欄問題記錄,非常不錯,具有參考借鑒價值,需要的朋友可以參考下
    2017-07-07
  • 微信公眾號服務(wù)器驗(yàn)證Token步驟圖解

    微信公眾號服務(wù)器驗(yàn)證Token步驟圖解

    這篇文章主要介紹了微信公眾號服務(wù)器驗(yàn)證Token步驟圖解,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友可以參考下
    2019-12-12
  • JavaScript 10件讓人費(fèi)解的事情

    JavaScript 10件讓人費(fèi)解的事情

    JavaScript 可算是世界上最流行的編程語言,它曾被 Web 開發(fā)設(shè)計師貼上噩夢的標(biāo)簽,雖然真正的噩夢其實(shí)是 DOM API,這個被大量的開發(fā)與設(shè)計師隨手拈來增強(qiáng)他們的 Web 前端的腳本語言,如今越來越被重視,雖則如此,JavaScript 仍然擁有很多讓人費(fèi)解的東西。
    2010-02-02
  • 微信小程序與公眾號卡券/會員打通的問題

    微信小程序與公眾號卡券/會員打通的問題

    這篇文章主要介紹了微信小程序與公眾號卡券/會員打通的問題,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧
    2019-07-07

最新評論