The Adaptive Fullscreen Sections Pattern
Explore the Adaptive Fullscreen Sections pattern and understand why it’s important.
Fullscreen sections are a common design pattern in modern web layouts—used for hero banners, intros, modals, or immersive slides. However, implementing them consistently across devices, especially on mobile, requires adjustments due to viewport quirks. The Adaptive Fullscreen Sections pattern is all about creating page sections that always fill the viewport while gracefully adapting to different screen sizes, orientations, and content lengths.
How the pattern works
This pattern uses viewport units (e.g., 100vh) to size elements relative to the browser window, along with JavaScript or CSS variables to correct for inconsistencies on mobile devices. For example, setting height: 100vh can fail on mobile Safari due to the address bar, so an adjusted value using custom properties (like --vh) ensures the layout truly fills the visible space.