Demo of Object Fit

http://codepen.io/makzan/full/pvKeOb

Screenshot of the demo

I created a demo on the new CSS object-fit property. It’s like background-size cover or contain. But object-fit works on the media instead of the background. The demo works in Safari, Chrome, Firefox and mobile Safari, mobile Chrome.

Filed under CSS, Web Design