1.0.1 • Published 7 years ago
jquery-aspect-ratio-keeper v1.0.1
jQueryAspectRatioKeeper
Keeps the original proportion (aspect ratio) for any HTML tag like video, iframe, object, div, etc.
Sample: https://codepen.io/frontid/pen/RZVppP
Usage
// Keep the original video proportion.
$('video').aspectRatioKeeper()
Options
wrapperName: specifies the generated wrapper name. Desaults to 'tag-ark'
1.0.1
7 years ago