Hi, Kay. Please replace the previous custom CSS with this one:
.sp-image {
margin: 0 !important;
width: 100% !important;
height: 100% !important;
object-fit: cover;
object-position: center;
}
.sp-slide {
overflow: hidden;
}
By default, the slider will try to use JavaScript to cover the area and center the image, and for this it does some calculations. Certain contexts might interfere with these calculations and affect the result. The above CSS should do the same, but since it’s only CSS, it should be more reliable.
Also, a few important notes:
The images need to be loaded before they can be centred/positioned properly. It’s not possible to know an image’s size from the start and position it accordingly, which causes that jump. In order to prevent that, you could hide the image until it’s loaded and only make it visible then. For this you can use this CSS:
.sp-image {
opacity: 0 !important;
}
.sp-image[style*="width"] {
opacity: 1 !important;
}
At the moment your images take a long time to load because they all load simultaneously. You should enable Lazy Loading, which will load them only when they are needed. This saves bandwidth and it greatly improves the loading time of the selected slide image.
You might also try to optimize the file size of the images themselves, as they seem to be much larger than they need to be. If you export them for web and maybe reduce their quality a little, so that it’s not noticeable, you could achieve much smaller file sizes.
Best,
David