jquery-responsive-ratio
Force DOM elements to be responsive at a specific aspect ratio.
Note: This plugin is brand new, and does not have any unit tests. I am currently using this plugin and it works to suit my needs in the browser, but it needs unit tests. Until I find the time, pull requests welcomed.
Install
with npm:
$ npm install --save jquery-responsive-ratio
or manually:
Usage
;
API
jQuery($object).makeResponsive([options]);
$object
Required
The jquery object or collection you want to make responsive.
options
ratio
Type: number
Default: 0.563
The aspect ratio you want to force on the jQuery element.
License
MIT © Michael Wuergler