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

01Tab Container a Measured Height Gap Stretches

The measured heights of the outgoing and incoming panel are read just before the swap, and the gap between them (in px) drives the container height as it interpolates to the next panel's height during the transition.

Best forSettings screens, profile tabs, FAQ sections

getBoundingClientRect()wrap.style.height180~620ms
Tab Container a Measured Height Gap Stretches
Open in a new tab

01 Tab Container a Measured Height Gap Stretches — Measured area 42.901% · moving frames 9/23Original by GODRICH · SCSS and React ship in the zip · 9 CSS Tab Panel Transition Patterns to Copy

The post this demo lives in

9 CSS Tab Panel Transition Patterns to Copy - preview of all 9 demos9 CSS Tab Panel Transition Patterns to CopyA css tab panel roundup: Height-morph times its stretch by the pixel gap between panels; stack shrinks by index distance See all demos in this post

If you like this effect - similar demos