Basic

<div class="background"></div>
$(".background").background({
    source: "http://example.com/image.jpg"
});

Responsive

<div class="background"></div>
$(".background").background({
    source: {
        "0px": "http://example.com/image-small.jpg",
        "980px": "http://example.com/image-large.jpg"
    }
});

Video

<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"
    }
});

Lazy Load

<div class="background"></div>
$(".background").background({
	lazy: true,
    source: "http://example.com/image.jpg"
});