Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

220
Views
How to add event onTouch when swipe to top and down for change slide , becuase the div container is tranfrom : rotate(90deg)

How can i swipe top and down to change a slide when the div is rotate(90deg) thank you.

import React from "react";
import { Swiper, SwiperSlide } from "swiper/react";
import SwiperCore, {
Navigation,
Pagination,
Autoplay,
Virtual
} from "swiper/core";
import "swiper/swiper-bundle.css";
import "./styles.css";

SwiperCore.use([Navigation , Pagination, Autoplay, Virtual]);

export default function App() {
const slides = [];

for (let i = 0; i < 12; i++) {
slides.push(
  <SwiperSlide key={`slide-${i}`} style={{ listStyle: "none" }}>
    <div className="slide">
      <h3>{i}</h3>
    </div>
  </SwiperSlide>
);
}

return (
<div style={{ transform: "rotate(90deg)" }}>
  <Swiper
    id="swiper"
    virtual
    slidesPerView={3}
    spaceBetween={30}
    onReachEnd={() => {
      console.log("reach end");
      const tmp = slides.unshift();
      slides.push(tmp);
    }}
    navigation
    pagination
  >
    {slides}
  </Swiper>
</div>
);
}

[enter link description here] [1]: https://codesandbox.io/s/swiper-react-demo-forked-kp24s?file=/src/App.js

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!