@voorhoede/vue-fixed-ratio

Force content inside an element to have a fixed ratio. This technique prevents reflow when loading images and other lazy content.

Usage no npm install needed!

<script type="module">
  import voorhoedeVueFixedRatio from 'https://cdn.skypack.dev/@voorhoede/vue-fixed-ratio';
</script>

README

@voorhoede/vue-fixed-ratio

npm version

Force content inside an element to have a fixed ratio. This technique prevents reflow when loading images and other lazy content.

See docs for more information.

License

MIT Licensed by De Voorhoede