Few days ago we posted FitText flexible jquery plugin for font re-sizing, making sure a text fits into a defined element. Use this plugin on your fluid or responsive layout to achieve scalable headlines that fill the width of a parent element and now today we are going to present same features jQuery plugin but this time for Videos.
It automates the Intrinsic Ratio Method by Thierry Koblentz to achieve fluid width videos in your responsive web design.
Usage is simple, just call the fitVids
function by targeting a video and the element will be auto-wrapped with a <div>
and CSS for resizing it will be applied.
Currently, it is compatible with major services like Youtube, Vimeo, Blip.TV or Viddler.
Requirements: jQuery
Compatibility: All Major Browsers
Website: http://fitvidsjs.com/
Download: https://github.com/davatron5000/FitVids.js