I'm encountering an issue with react-slick where upon first-loading the page the last slide is being displayed first while the pagination-dots are on a disabled state(this indicating that the autoplay has not yet begun), after the autoplay begins it slides into the actual first slide and pagination-dots indicates correctly(react-slick here works fine onwards, issue lies on first load of page only).
Has anyone had the same issue?
Here's the code for my sliderParams:
const sliderParams = {
className: `slider-container ${styles['slider-container']}`,
autoplay: true,
speed: 1000,
autoplaySpeed: 3000,
dotsClass: `slick-dots ${styles.dots}`,
dots: true,
slidesToShow: 1,
slidesToScroll: 1,
infinite: true,
nextArrow: <NextArrow />,
prevArrow: <PrevArrow />,
};
Thanks in advance for any help!