Object Fit Images : JavaScript Polyfill for Object-fit & Object-position

    Object Fit Images : JavaScript Polyfill for Object-fit & Object-position

    Polyfill object-fit and object-position on images on IE9, IE10, IE11, Edge, Safari, etc.

    Features:

    • Fast and lightweight
    • No additional elements are created or necessary
    • Once set, position is taken care by the browser
    • srcset support
    • You can still access/change src and srcset properties and attributes: img.src = 'other-image.jpg'

    Leave a Reply