🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

js-flex-embed is a jQuery plugin for responsive iframe and image that makes any embedded content as large as possible to fit within their parent container.

responsive-image responsive-iframe

Documentation

js-flex-embed

jQuery Plugin for responsive intrinsic ratio embeds

##Usage

 <iframe class="js-flex-embed" width="560" height="315" src="..."></iframe>  <iframe class="js-flex-embed" data-width="560" data-height="315" src="..."></iframe>  <iframe class="js-flex-embed" data-aspect-ratio=".4" width="560" height="315" src="..."></iframe>  <img class="js-flex-embed" data-width="560" data-height="315" src="...">
    // Enhance     $( document ).trigger( "enhance" );

##Package managers

  • Install with Bower: bower install js-flex-embed --save
  • Install with npm: npm install js-flex-embed

Release History

  • v1.0.0: Initial release.

You May Also Like