Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
jquery plugin to scale a video element to the window size, maintaining aspect ratio and centering horizontally and vertically (make video a background).
JavaScript
Branch: master
Failed to load latest commit information.
.gitignore initial commit
README.md updated readme
sample.html updated readme
tm.fullscreen.js updated readme

README.md

fullscreen

fullscreen jquery plugin to scale to window size (to be used as a background), maintains aspect ratio and centers in window.

usage

select the tag and invoke the plugin. $('video').fullscreen();. your video width and height must be defined <video width="1600" height="950"> in order to maintain aspect ratio. then a simple css definition will position your element video { left: 0; position: fixed; top: 0; }.

demo

wrote for project prometheus site, see there for example [http://www.projectprometheus.com/crew].

or this stripped down version [https://s3.amazonaws.com/thomasmulloy/demos/fullscreen/sample.html]

Something went wrong with that request. Please try again.