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

09Consent-gated embed placeholder — a card that folds by a height computed from its notice text

The instant consent is marked, the height of the notice block is computed, and the block folds up by that exact height while the frame beneath unfolds by the same amount to reveal itself.

Best forEmbed zones on GDPR-facing landing pages, video/social sections that require cookie-notice consent

requestAnimationFrameoffsetHeightaria-expanded
Consent-gated embed placeholder — a card that folds by a height computed from its notice text
Open in a new tab

09 Consent-gated embed placeholder — a card that folds by a height computed from its notice text — Measured area 37.148% · moving frames 19/23Original by GODRICH · SCSS and React ship in the zip · 9 YouTube Embed Code UI Patterns (Copy-Paste)

The post this demo lives in

9 YouTube Embed Code UI Patterns (Copy-Paste) - preview of all 9 demos9 YouTube Embed Code UI Patterns (Copy-Paste)Nine embed UIs: a frame's height recomputes from its width, a lite facade times itself into a full frame after a delay, See all demos in this post

If you like this effect - similar demos