Responsive & Adpative iFrame Plugin For jQuery - iframeResizer.js
File Size: | 2.57 KB |
---|---|
Views Total: | 1023 |
Last Update: | |
Publish Date: | |
Official Website: | Go to website |
License: | MIT |

iframeResizer.js is an extremely lightweight jQuery plugin that auto resizes the iFrame element depending on the size of embedded content.
How to use it:
1. To use this plugin, just include the iframeresizer.js after jQuery library:
<script src="//code.jquery.com/jquery.min.js"></script> <script src="iframeresizer.js"></script>
2. And then call the function iframeResizer()
on the iFrame element and we're done.
$('iframe').iframeResizer();
3. Override the default time in milliseconds to refresh on window resize.
$('iframe').iframeResizer({ timer: 250 });
This awesome jQuery plugin is developed by onigetoc. For more Advanced Usages, please check the demo page or visit the official website.