Replies: 1 comment 3 replies
-
<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>
</div>
<button type="button" class="swiper-navigation-prev">Prev</button>
<button type="button" class="swiper-navigation-next">Next</button>
<!-- Swiper JS -->
<script src="https://unpkg.com/swiper/swiper-bundle.min.js"></script>
<!-- Initialize Swiper -->
<script>
var swiper = new Swiper(".swiper-container", {
navigation: {
nextEl: ".swiper-navigation-next",
prevEl: ".swiper-navigation-prev"
}
});
</script> |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
vltansky
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey!
I'd like to thank you all for the wonderful component that you've made!
I want to make sure the navigation arrows and slider won't make any contact. The way I thought this should be done is by moving the nav-arrows outside the container, but then the arrows won't work.
My question is as the title, is it possible to move the navigation arrows to outside the container,or is it better to approach this issue in some other way?
Beta Was this translation helpful? Give feedback.
All reactions