Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

<video> as background

branch: master
readme.md

jQuery - Background video plugin

Add a background video to your website…

Download

The full source can be downloaded from the master branch on GitHub (as a zip or gz) or installed via bower (bower install background-video).

Usage

Add the script to your homepage after jquery <script src="js/libs/jquery.backgroundvideo.min.js"></script>

And launch the plugin :

<script>
  $(document).ready(function() {
    var videobackground = new $.backgroundVideo($('body'), {
      "align": "centerXY",
      "width": 1280,
      "height": 720,
      "path": "media/",
      "filename": "cloud",
      "types": ["mp4","ogg","webm"]
    });
  });
</script>

Examples

Check out the example folder.

Something went wrong with that request. Please try again.