jquery-responsive-ratio

0.0.1 • Public • Published

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

Package Sidebar

Install

npm i jquery-responsive-ratio

Weekly Downloads

3

Version

0.0.1

License

MIT

Last publish

Collaborators

  • radiovisual