Makzan / I share what I learnt

Demo of Object Fit

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.

Published on February 27, 2015. More articles like this: CSS, Web Technologies.

Sign up for weekly dispatch each week.

Want productive tips and web technologies links like this in your inbox each week? No spam ever. Just useful content:

Read previous weekly dispatch newsletters.