pym.js

Resize an iframe responsively depending on the height of its content and the width of its container.

use-viewport-width

React hook that returns pixel values for viewport width percentages, updating on resize.