Image as background
To maintain all the functionalities of the plugin in the case of images that are part of an element background, you can use the object-cover
attribute; this will allow the image to fit the size of the parent using the object-fit: cover
CSS property.
The image will be centered and cropped to fit the parent element size.
Last updated