useAutomaticScroll()
Hook to automatically scroll the slider. It can be used in the Slider component.
const MySlider = () => (
<Slider
withAutomaticScroll={true}
automaticScrollDuration={2000}
slides={slides}
>
<SliderImage />
</Slider>
);
Get the code
Please, log in or sign up to see the code.