<div class="background"></div>
$(".background").background({
source: "http://example.com/image.jpg"
});
<div class="background"></div>
$(".background").background({
source: {
"0px": "http://example.com/image-small.jpg",
"980px": "http://example.com/image-large.jpg"
}
});
<div class="background"></div>
$(".background").background({
source: {
poster: "http://example.com/poster.jpg",
webm: "http://example.com/video.webm",
mp4: "http://example.com/video.mp4",
ogg: "http://example.com/video.ogv"
}
});
<div class="background"></div>
$(".background").background({
lazy: true,
source: "http://example.com/image.jpg"
});