У нас вы можете посмотреть бесплатно How to Fix VH Jumping screen bug on Mobile (Webflow) или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
Hey ! I'm Raphaël, a freelance Web developper. In this video, I’ll show you a simple and effective way to fix the annoying screen jump issue on mobile when using vh units for height on your website. Code snippet to add in your footer (Don’t forget to wrap it in script tags!) function lockViewportHeight() { const vh = window.innerHeight; document.documentElement.style.setProperty('--locked-vh', `${vh}px`); } window.addEventListener('DOMContentLoaded', lockViewportHeight); window.addEventListener('orientationchange', lockViewportHeight); How to use CSS Variable : var(--locked-vh, 100svh) calc(0.8 * var(--locked-vh, 80vh)) Subscribe for more tutorials on WeWeb, Supabase, Airtable and Webflow. My WebSite : https://raphael-boulan-freelance.webf... 00:00 Intro 00:27 Layout overview 01:10 Adding custom JavaScript to create the CSS variable 02:00 Applying the CSS variable to the element height 03:30 SFinding other elements using vh for height 04:20 Applying the CSS variable with calc