responsive-backgrounds
Lazy-load responsive backgrounds
Define different screen sizes for background images to be swapped out
Define your screen sizes with:
- For window width 0px and up, images/small.jpg will be used.
- For window width 500px and up, images/medium.jpg will be used.
- For window width 800px and up, images/large.jpg will be used.
Initialize the javascript with:
selectoroptions;
Options defaults are:
options = lazy: true // lazy-load image(s) on page load, and before transitioning between different sizes transition: 05 // how long a background transition is (in seconds)