A modern, lightweight alternative for resizing iframes dynamically. It is shipped under the MIT license, making it usable in commercial projects.
If you found this project helpful, please consider starring the repository!
<script type="module">
import { initialize } from "https://cdn.jsdelivr.net/npm/@open-iframe-resizer/core@latest/dist/index.min.js";
initialize({}, "#my-iframe");
</script>
You can found a working example here
Note you can also install the core package through npm:
npm install @open-iframe-resizer/core
A React component is also available:
npm install @open-iframe-resizer/react
Explore the full documentation
Chrome | Safari | Firefox | Opera | IE |
---|---|---|---|---|
64+ | 13.1+ | 69+ | 51+ | 🙅♂️ |