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.