Skip to content

Instantly share code, notes, and snippets.

Created Feb 3, 2018
What would you like to do?
Scalable iframe with reproCSS
<h1>Scalable iframe</h1>
<iframe id="demo" width="560" height="315" src="" frameborder="0" allowfullscreen></iframe>
<style process="load resize">
#demo {
width: 100%;
height: calc(${document.querySelector('#demo').offsetWidth}px / (${demo.width}/${demo.height}));
<footer>Built with <a href=>reproCSS</a> </footer>
<script src="//"></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment