Animated Grid Layout Experiments (CSS-only)

CSS grid layouts using named areas are great for defining layouts, especially when driven using decoupled custom properties to drive state, responsiveness, etc.

You cannot natively animate between property-driven grid states, however: grid-template-areas does not support transitions, and interpolation of grid-template-columns/grid-template-rows only works with a constant number of values.

There's really no need to animate the layouts, but it's a neat technical challenge.


Demos


These only work in browsers which support Container Style() Queries and Anchor Positioning.