@diddledan/proportional-height-box
Version:
Web component to resize child element to proportional height based on the width similar to fitvids
19 lines (15 loc) • 502 B
HTML
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">
<title>proportional-height-box</title>
<script src="../node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
<script type="module">
import '@polymer/iron-component-page';
</script>
</head>
<body>
<iron-component-page></iron-component-page>
</body>
</html>