375to320

If the screen width of the device is less than 375px (e.g. 320px), this script will fix viewport width to 375px.

Usage no npm install needed!

<script type="module">
  import 75to320 from 'https://cdn.skypack.dev/375to320';
</script>

README

375to320

If the screen width of the device is less than 375px (e.g. 320px), this script will fix viewport width to 375px.

Install

npm install --save 375to320

Usage

import '375to320'

or

<script src="path/to/375to320.min.js"></script>