Kniga
Kniga

Reputation: 125

Swiper: How to determine the type of event?

I'm using Swiper for React.

I need to use a different effect if the user swipes and uses buttons to change the active slide.

I looked in the swipe object for information about the event type but couldn't find anything:

<StyledWidgetRecentJoins
  onTransitionEnd={(swiper) => {
    console.log(swiper);
  }}
>
  //
</StyledWidgetRecentJoins>

How to determine the type of event?

Upvotes: 1

Views: 3024

Answers (1)

Ran Turner
Ran Turner

Reputation: 17946

The Swiper API documentation gives you the a bunch of useful events you can listen to.

You can choose the ones you listen to. checkout this link for information - https://swiperjs.com/swiper-api#events

Upvotes: 1

Related Questions