odland.dev
Cropping Images with CSS While Keeping a Focal Point in the Center
The post shows how to use CSS custom properties, object-fit, object-position, clamp, and container queries to crop images while keeping a chosen focal point centered.
One line. Many voicesSeek and you shall find
odland.dev
The post shows how to use CSS custom properties, object-fit, object-position, clamp, and container queries to crop images while keeping a chosen focal point centered.