Demo of object-fit

This is a demo on the object-fit.

Adjust the width of the container to view the effect of object-fit: Narrow | Wide | Full Width

Without object-fit:

placeholder image
placeholder image
placeholder image
placeholder image
placeholder image

With object-fit

placeholder image
placeholder image
placeholder image
placeholder image
placeholder image
placeholder image
placeholder image
placeholder image
placeholder image
placeholder image
placeholder image
placeholder image
placeholder image
placeholder image
placeholder image