Replies: 1 comment 2 replies
-
bro you have more specifically, but i try to help. .swiper-custom-bullet {
height: 2px;
width: 2px;
background-color: white;
}
.swiper-custom-bullet.swiper-custom-bullet-active {
height: 2px;
width: 2px;
background-color: orange;
} React : const MyComponent = () => {
return (
<>
<div id="containerForBullets"></div>
<Swiper
pagination={{
el: "#containerForBullets",
type: "bullets",
bulletClass: "swiper-custom-bullet",
bulletActiveClass: "swiper-custom-bullet-active",
clickable: true,
}}
>
<SwiperSlide>Slide 1</SwiperSlide>
<SwiperSlide>Slide 2</SwiperSlide>
<SwiperSlide>Slide 3</SwiperSlide>
<SwiperSlide>Slide 4</SwiperSlide>
</Swiper>
<>
)
}; |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://www.figma.com/file/xkP6mIaq7uG1Uru7CpasXq/Museum-04.09?node-id=0%3A1&t=EMqoKRFvcSCCGGCV-0
i want to make the slider in the section welcome on react with slider-swiper
your documentation is really difficulte, i can't understand it
please help me how to add two paginations and navigation to one container with custom styles
Beta Was this translation helpful? Give feedback.
All reactions