Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
Swiper pagination not showing
Post Flair (click to view more posts with a particular flair)
Post Body

First time using swiper ,I followed the documentation, I added the html part in my code I initialize it in JS, I initialize pagination but it is not showing on my page. This is my code:

var Swiper = require('swiper');
  $(document).ready(() => { 
    var swiper = new Swiper('.swiper-container', {   
      pagination: { 
       el: '.swiper-pagination', 
     } 
    });
  }); 

  //HTML 
 <div class="swiper-container"> 
   <div class="swiper-wrapper">
     <div class="swiper-slide"> Slide 1 </div>
     <div class="swiper-slide"> Slide 2 </div>
     <div class="swiper-slide"> Slide 3 </div>
     <div class="swiper-slide"> Slide 4 </div>
  </div> 
  <div class="swiper-pagination"> </div>
 </div>

can someone explain me what am I doing wrong I get the pagination element height and width 0px,

Author
Account Strength
80%
Account Age
6 years
Verified Email
Yes
Verified Flair
No
Total Karma
251
Link Karma
97
Comment Karma
154
Profile updated: 5 days ago
Posts updated: 3 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
4 years ago