jquery object-fit polyfill
Simple object-fit polyfill for the CSS3 Images object-fit property.
Read about how CSS3 images works on the Opera Developer blog
Usage:
$('.selector').objectFit('contain');
$('.selector').objectFit('cover');
Test Suite
Try the test suite
to see what it all looks likeAuthors:
Originally by Schmidsi and re-worked by steveworkman