Flexy, an iframe/object/embed/video responsive very light jQuery plugin

‹ Github project page

Getting started

Default size

<iframe width="560" height="315" src="https://www.youtube.com/embed/x3kfyZJhC3U?rel=0&showinfo=0" frameborder="0" allowfullscreen></iframe>

(function ($){

Smaller size

Nota bene

Flexy plugin works with iframe, embed, object or video elements.


Option Type Default Description
addcss boolean true Enables default flexy inline CSS applied to wrapper and video element
classname string 'flexy-wrapper' CSS class applied to wrapper
widescreen boolean true Enables wide screen format (16/9). Made especially for Vimeo embed