0.0.1 • Published 8 years ago

jquery-responsive-ratio v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

jquery-responsive-ratio Build Status

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:

<script src='js/vendor/jquery.responsive-ratio.min.js'></script>

Usage

jQuery('iframe').makeResponsive();

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