kidjp85 / react-id-swiper

A library to use idangerous Swiper as a ReactJs component which allows Swiper's modules custom build
https://react-id-swiper.ashernguyen.site/
MIT License
1.49k stars 154 forks source link

Vertical Mode is not working properly #506

Closed 1mehdifaraji closed 2 years ago

1mehdifaraji commented 2 years ago

This is the code I got from the official docs : ` import React from "react"; import Swiper from "react-id-swiper"; import "swiper/css/swiper.css";

const Home = () => { const params = { direction: "vertical", pagination: { el: ".swiper-pagination", clickable: true, }, }; return ( <Swiper {...params}>

Slide #1
  <div>Slide #2</div>
  <div>Slide #3</div>
  <div>Slide #4</div>
  <div>Slide #5</div>
</Swiper>

); }; export default Home; ` But it shows all the divs and swiper doesn't work properly

1mehdifaraji commented 2 years ago

I solved the issue with this css class in global styles : .swiper-container { height: 10em; overflow: hidden; }