Skip to content

Ultimate background - jQuery plugin that enables image, video background for your block

Notifications You must be signed in to change notification settings

datmt/ultimate-background

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

ULTIMATE PAGE, DIV BACKGROUND

This is the jQuery plugin to add image/video background to any divs on your HTML page. It supports both YouTube videos and self hosted video.

If you have questions, please send an email to dat.tm24 (I use gmail)

Thanks!

How to use

Using the plugin is very simple. You need to include it in your page first, of course. After that, suppose you want to add YouTube video background to div#video, do this

jQuery('#video').c47bg({
  type: 'youtube',
  container: 'div',
  source: 'youtube video ID'
});

If you want to use self hosted video, make sure you have .mp4, .ogv and .webm

jQuery('#video').c47bg({
  type: 'self-hosted',
  container: 'div',
  source: {
    mp4: 'mp4 url',
    webm: 'webm url',
    ogv: 'ogv url'
  }
});

If you want to apply the video to the body, replace container from div to body.

About

Ultimate background - jQuery plugin that enables image, video background for your block

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published