Created
March 5, 2021 04:37
-
-
Save Isa3v/3aee3757aedbe46438c4da4a1d7a7f4a to your computer and use it in GitHub Desktop.
Переменная css (100vh) для всех устройств и IOS Safari через JS
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 appHeight = () => { | |
const doc = document.documentElement | |
doc.style.setProperty('--max-height-app', `calc(${window.innerHeight}px)`); | |
} | |
appHeight() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment