Responsive Fullscreen Background Video Plugin - Backcodex

Responsive Fullscreen Background Video Plugin - Backcodex
File Size: 1.03 MB
Views Total: 1622
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

backcodex is a simple-to-use jQuery plugin which allows for an Html5 video to be used as a responsive, full window background for your website.

How to use it:

1. Load jQuery library and the jQuery backcodex plugin at the end of the document so the webpage loads faster.

<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="jquery.backcodex.min.js"></script>

2. Call the $.backcodex() method and specify an array html5 videos for the background.

$.backcodex([
  "1.mp4", 
  "1.ogv", 
  "1.webm"
]);

3. By default, the plugin will append the video background to the body element. You can also specify the target container using 'container' parameter during initialization.

$.backcodex('#container',[
  "1.mp4", 
  "1.ogv", 
  "1.webm"
]);

4. The method to destroy the plugin.

$.backcodex('destroy');

This awesome jQuery plugin is developed by crackcodex. For more Advanced Usages, please check the demo page or visit the official website.