SHARE
TWEET

Untitled

a guest Aug 19th, 2019 120 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.   <meta charset="utf-8">
  5.   <title>Swiper demo</title>
  6.   <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
  7.  
  8.   <!-- Link Swiper's CSS -->
  9.   <link rel="stylesheet" href="../dist/css/swiper.min.css">
  10.  
  11.   <!-- Demo styles -->
  12.   <style>
  13.     html, body {
  14.       position: relative;
  15.       height: 100%;
  16.     }
  17.     body {
  18.       background: #eee;
  19.       font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
  20.       font-size: 14px;
  21.       color:#000;
  22.       margin: 0;
  23.       padding: 0;
  24.     }
  25.     .swiper-container1 {
  26.       width: 500px;
  27.       height: 300px;
  28.     }
  29.     .swiper-container2 {
  30.       width: 500px;
  31.       height: 300px;
  32.     }
  33.     .swiper-slide {
  34.       text-align: center;
  35.       font-size: 18px;
  36.       background: #fff;
  37.  
  38.       /* Center slide text vertically */
  39.       display: -webkit-box;
  40.       display: -ms-flexbox;
  41.       display: -webkit-flex;
  42.       display: flex;
  43.       -webkit-box-pack: center;
  44.       -ms-flex-pack: center;
  45.       -webkit-justify-content: center;
  46.       justify-content: center;
  47.       -webkit-box-align: center;
  48.       -ms-flex-align: center;
  49.       -webkit-align-items: center;
  50.       align-items: center;
  51.     }
  52.   </style>
  53. </head>
  54. <body>
  55.   <!-- Swiper -->
  56.   <div class="swiper-container swiper-container1">
  57.     <div class="swiper-wrapper">
  58.       <div class="swiper-slide">Slide 1</div>
  59.       <div class="swiper-slide">Slide 2</div>
  60.       <div class="swiper-slide">Slide 3</div>
  61.       <div class="swiper-slide">Slide 4</div>
  62.       <div class="swiper-slide">Slide 5</div>
  63.       <div class="swiper-slide">Slide 6</div>
  64.       <div class="swiper-slide">Slide 7</div>
  65.       <div class="swiper-slide">Slide 8</div>
  66.       <div class="swiper-slide">Slide 9</div>
  67.       <div class="swiper-slide">Slide 10</div>
  68.     </div>
  69.  
  70.   </div>
  71.  
  72.     <!-- Add Arrows -->
  73.     <div class="swiper-button-next works-button-next"></div>
  74.     <div class="swiper-button-prev works-button-prev"></div>
  75. <br><br><br>
  76.  
  77.  
  78.   <!-- Swiper2 -->
  79.   <div class="swiper-container swiper-container2">
  80.     <div class="swiper-wrapper">
  81.       <div class="swiper-slide">Slide 1</div>
  82.       <div class="swiper-slide">Slide 2</div>
  83.       <div class="swiper-slide">Slide 3</div>
  84.       <div class="swiper-slide">Slide 4</div>
  85.       <div class="swiper-slide">Slide 5</div>
  86.       <div class="swiper-slide">Slide 6</div>
  87.       <div class="swiper-slide">Slide 7</div>
  88.       <div class="swiper-slide">Slide 8</div>
  89.       <div class="swiper-slide">Slide 9</div>
  90.       <div class="swiper-slide">Slide 10</div>
  91.     </div>
  92.   </div>
  93.  
  94.  
  95.  
  96.   <!-- Swiper JS -->
  97.   <script src="../dist/js/swiper.min.js"></script>
  98.  
  99.   <!-- Initialize Swiper -->
  100.   <script>
  101.     var swiper = new Swiper('.swiper-container1', {
  102.       navigation: {
  103.         nextEl: '.works-button-next',
  104.         prevEl: '.works-button-prev',
  105.       },
  106.     });
  107.  
  108.  
  109.     var swiper = new Swiper('.swiper-container2', {
  110.     effect: 'fade',
  111.       navigation: {
  112.         nextEl: '.works-button-next',
  113.         prevEl: '.works-button-prev',
  114.       },
  115.     });
  116.  
  117.   </script>
  118. </body>
  119. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top