Skip to content

Navigation Menu

Sign in
Sign up
This repository was archived by the owner on Sep 1, 2026. It is now read-only.

Latest commit

History

21 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Keep Ratio

Build Status

A jQuery plugin for keeping the aspect ratio

Example usage: http://loonkwil.github.io/jquery.keep-ratio/

Install

Requirements Bower

bower install git://github.com/loonkwil/jquery.keep-ratio.git --save
content-type" content="text/html; charset=utf-8"> </head> <body> <div></div> <script src="bower_components/jquery/jquery.js"></script> <script src="bower_components/request-animation-frame/rAF.js"></script> <script src="bower_components/jquery.keep-ratio/src/jquery.keep-ratio.js"></script> <script type="text/javascript"> $(function() { $('div').keepRatio({ ratio: 4/3, calculate: 'width' }); }); </script> </body>

About

A jQuery plugin for keeping the aspect ratio

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /