A playground to generate object-view-box values dynamically object-view-box allows us to crop or resize replaced HTML elements like an img or a video tag, a native way to crop an image in the browser with CSS.
object-view-box