Below are the necessary steps to resolve the issue:
- Include the following CSS code:
.home-slider .slick-list { overflow: visible !important; }
- Using !important is crucial as
{overflow: hidden}
will be automatically applied to the element style during the animation, ensuring clones on the left and right remain visible.
- Add a new CSS selector with the accompanying styles:
.home-slider.slick-slider {
position: static;
overflow: hidden;
}
Clones should not be visible, but make sure the button and dots at the bottom are correctly positioned.
Wrap the div.home-slider
in a parent div.home-slider-wrapper
in your HTML:
Apply the following CSS:
.home-slider-wrapper {position: relative;}
- Align the button and dots so their position is calculated from
.home-slider-wrapper
.