GODRICH
#css-animation#button#loader#transition#scroll#dashboard#ui#design-trends

07Notch safe-area padding — margin that pushes content clear of a screen's cut-out edges

Inside a frame simulating a screen with a notch and bottom bar, the content's bottom padding automatically grows to match that cut-out area, so no button is ever hidden behind it.

Best forA full-screen mobile layout, a bottom-fixed action bar

env(safe-area-inset-top)env(safe-area-inset-bottom)--safe-top
Notch safe-area padding — margin that pushes content clear of a screen's cut-out edges
Open in a new tab

07 Notch safe-area padding — margin that pushes content clear of a screen's cut-out edges — Measured area 1.788% · moving frames 23/23Original by GODRICH · SCSS and React ship in the zip · CSS Reset: 9 Patterns From Basics to Safe-Area

The post this demo lives in

CSS Reset: 9 Patterns From Basics to Safe-Area - preview of all 9 demosCSS Reset: 9 Patterns From Basics to Safe-AreaNine css reset patterns: one recalculates padding for the safe area, one shrinks transition duration near zero when moti See all demos in this post

If you like this effect - similar demos