get-viewport-size
Get the height and width of the (browser) viewport.
Usage no npm install needed!
<script type="module">
import getViewportSize from 'https://cdn.skypack.dev/get-viewport-size';
</script>
Get the height and width of the (browser) viewport.
<script type="module">
import getViewportSize from 'https://cdn.skypack.dev/get-viewport-size';
</script>