move pagination outside of <swiper></swiper>
See original GitHub issueIn all the examples, even with custom pagination, the pagination html is contained within the <swiper></swiper>
block like so…
<swiper>
<swiper-slide></swiper-slide>
<div class="swiper-pagination" slot="pagination"></div>
</swiper>
Is it possible to move the pagination outside the <swiper></swiper>
block? For instance, move it into the footer
<swiper>
<swiper-slide></swiper-slide>
</swiper>
<footer>
<div class="swiper-pagination" slot="pagination"></div>
</footer>
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (3 by maintainers)
Top Results From Across the Web
Reactjs,swiperjs,Css-How to move the pagination outside of ...
If you want to move the pagination out then it would be easier to place it outside of the Swiper container rather than...
Read more >PaginationOptions | Swiper - v8.4.5
Defines which HTML tag will be used to represent single pagination bullet. Only for 'bullets' pagination type. default. 'span'. Optional clickable.
Read more >Swiper custom pagination - CodePen
URL Extension Required. When linking another Pen as a resource, make sure you use a URL Extension of the type of code you...
Read more >SwiperJS - Tips and Good Practice - OXYGEN4FUN
We have added a new container (that we have called swiper-container), and we have moved the pagination and buttons so now they are...
Read more >Swiper Demo 7 Custom Pagination - StackBlitz
<!DOCTYPE html> · <html lang="en"> · <head> · <meta charset="utf-8"> · <title>Swiper demo</title> · <!-- Link Swiper's CSS --> · <link rel="stylesheet" href="https:// ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I wanted to present a simple solution that seems to get the job easily with some css changes.
assuming your html structure is the same as in the docs
I moved pagination outside the swiper with absolute positioning. I added padding to the bottom of the container to get around needing to set overflow to visible.