How to make SwiperJs vertical mode, swipes BTT (from Bottom to Top)?

22 Views Asked by At

I'm using swiperJs on a React project to to escalate from a number to another. but the number is always raising up (like a stats of total gaining). So I wanna make it scroll/swipe from bottom to top but it works upside down.

they have a prop there: 'rtl', which is the solution but for the horizontal swiper. https://swiperjs.com/demos#rtl

is there any props like this or another way to change the direction of the swiper vertically? the red arrow is the current behavior , the green arrow is the wanted behavior

<Swiper
    loop={true}
    slidesPerView={13}
    className="mySwiper"
    centeredSlides={true}
    allowTouchMove={false}
    direction={'vertical'}
    modules={[Autoplay]}
    speed={5000}
    autoplay={{
        delay: 0,
        disableOnInteraction: false,
    }}
>

the red arrow is the current behavior , the green arrow is the wanted behavior

0

There are 0 best solutions below