Endrew I. Kim
Aug 8, 2017 · 1 min read

Do you have any idea how this would work for any viewport height as well?

I’ve tried replacing vw with vh and the max/min screen sizes with heights instead of widths. But what I’m wondering is an equation that listens to both width and height at the same time.

Possibly using the difference between vmax and vmin to do this?

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade