Skip to content

Presenting a solution for responsive iframe without aspect ratio assumption.

License

Notifications You must be signed in to change notification settings

0nyr/true-responsive-iframe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

🌞 true-responsive-iframe 🌞

Presenting a solution for responsive iframe without aspect ratio assumption.

StackOverflow related question: https://stackoverflow.com/questions/61407418/how-to-make-an-iframe-responsive-without-aspect-ratio-assumption

🚀 The idea 🚀

The goal is to resize the iframe when necesary, in other words when the window is resized. This is performed with JavaScript to get the new window size and resize the iframe in consequence.

NB: Don't forget to call the resize function after the page is loaded since the window is not resized by itself after page load.

About

Presenting a solution for responsive iframe without aspect ratio assumption.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published