Last active
January 3, 2018 13:22
-
-
Save authenticsebastian/bf0bf6b0e2839fee3588f5e98a324b1e to your computer and use it in GitHub Desktop.
Recalculating `vh` value to `vw` value for 16:9 screens
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const vh2vw = (value) => value / (16 / 9); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment