Home > database >  React SwiperJs Button Outside The Container
React SwiperJs Button Outside The Container

Time:09-20

i am using react swiperjs , how do i let the button can show outside the container with css?

JS File

Swiper CSS

CodePudding user response:

have you tried giving negative values to "left" and "right"?

something like left: -10%;

CodePudding user response:

add that CSS then your left and the right button will be outside of the block

.swiper-button-prev{ // use sass
    .swiper-button-prev{
       left: 0px;// fit px as your demand
    }
    .swiper-button-next{
      right:0px;// 
    }
}
  • Related