|File Size:||9.89 KB|
|Official Website:||Go to website|
A jQuery responsive aspect ratio solution which allows to responsively resize your element while keeping a specific aspect ratio when browser's size changes. Helpful in modern web project that makes any element responsive while maintaining the aspect ratio you specify.
How to use it:
1. Add jQuery library and the jQuery Responsive Ratio plugin to your webpages.
<script src="//code.jquery.com/jquery-1.12.1.min.js"></script> <script src="jquery.responsive-ratio.min.js"></script>
2. Call the function
.makeResponsive() on your responsive element and specify the aspect ratio you prefer. That's it.