Skip to content

erickarbe/HTML5-Background-Video

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jQuery - Background video plugin

Add a background video to your website…

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)', {
      "width": 1280,
      "height": 720,
      "path": "media/",
      "filename": "cloud",
      "types": ["mp4","ogg","webm"]
    });
  });
</script>

Examples

Check out the example folder.

About

<video> as background

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%