简体   繁体   中英

Jquery - pagination for images inside div's

I created simple image gallery and I'm looking for script or solution to make pagination for my images inside div's.

At first, it's my code.

CODEPEN.IO

My structure of gallery looks like this:

<div class="container">

 <div class="main-gallery">
  <div class="a-gallery">
   <div class="intem-gallery">
    <div class="image-gallery">
     IMAGE 
    </div>
   </div>
  </div>
 </div>

</div>

I found THIS jquery pagination script but it's works on different structure, like this.

<div class="parent">
 <div class="child">
  IMAGE
 </div>
</div>

So can this script handle it with my case or maybe someone have better solution because I need to keep eg. 4 images per site. I would like to have something that will work with my structure.

look at this jQuery Pagination plugin or this one 10+ jQuery Pagination Plugins . ist very easy to use. i hope it hepls

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM