ImageContainer

Image Container that loads a background element to pad white space if image does not match container aspect ratio

Source:
Properties:
Name Type Description
selector string

selector for HTML elements for loading background image to pad

imageCss string

image css class

backgroundCss string

background css class

Methods

(inner) init()

Source:

Initialize InView watcher for handling lazy load image / iframes

(inner) setBackground($target, src)

Source:

Set background image of an html element

Parameters:
Name Type Description
$target element
src string