There is a stylized slick-slider where the image should go beyond the top border:
At the same time, for .slick-list I have a background set (which is fixed, only the content is scrolled - text, picture and button):
How can I prevent the picture from being cropped?
Here are steps how to fix it
.home-slider .slick-list { overflow: visible !important; }
- you need IMPORTANT as {overflow: hidden}
will be added to the element style during the animation.
Clones on left/right should be visible
.home-slider.slick-slider {
position: static;
overflow: hidden;
}
Clones shouldn't be visible. But you have wrong position for the button and dots at the bottom
wrap(create parent div.home-slider-wrapper
) the div.home-slider
in the div.home-slider-wrapper
at your html
add to css
.home-slider-wrapper {position: relative;}
.home-slider-wrapper