Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion demos/090-vertical.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
</div>
<!-- Add Pagination -->
<div class="swiper-pagination"></div>
<!-- Add Navigation -->
<div class="swiper-button-next"></div>
<div class="swiper-button-prev"></div>
</div>


Expand All @@ -38,6 +41,10 @@
el: '.swiper-pagination',
clickable: true,
},
navigation: {
nextEl: ".swiper-button-next",
prevEl: ".swiper-button-prev",
},
});
</script>

Expand Down Expand Up @@ -85,4 +92,4 @@
</style>
</body>

</html>
</html>
14 changes: 14 additions & 0 deletions src/modules/navigation/navigation.less
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,17 @@
left: auto;
}
/* Navigation font end */
.swiper-vertical {
:is(.swiper-button-next, .swiper-button-prev) {
left: 50%;
transform: rotate(90deg);
transform-origin: left center;
}
.swiper-button-prev {
top: calc(var(--swiper-navigation-size) / 2);
}
.swiper-button-next {
top: auto;
bottom: calc(var(--swiper-navigation-size) / 2);
}
}
14 changes: 14 additions & 0 deletions src/modules/navigation/navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,17 @@
left: auto;
}
/* Navigation font end */
.swiper-vertical {
:is(.swiper-button-next, .swiper-button-prev) {
left: 50%;
transform: rotate(90deg);
transform-origin: left center;
}
.swiper-button-prev {
top: calc(var(--swiper-navigation-size) / 2);
}
.swiper-button-next {
top: auto;
bottom: calc(var(--swiper-navigation-size) / 2);
}
}