Swiping slides
You can change the swiping behaviour with the fastSwipe
plugin, and you can disable swiping by setting props draggable={false}
.
// import Carousel, { slidesToShowPlugin } from '@brainhubeu/react-carousel';
// import '@brainhubeu/react-carousel/lib/style.css';
<Carousel
plugins={[
'infinite',
'fastSwipe',
{
resolve: slidesToShowPlugin,
options: {
numberOfSlides: 2
}
},
]}
>
<img src={imageOne} />
<img src={imageTwo} />
<img src={imageThree} />
</Carousel>