[{"data":1,"prerenderedAt":1630},["ShallowReactive",2],{"page-\u002Fcss-only-micro-interactions-animations\u002Fcontainer-aware-motion\u002Flayout-change-animations-at-container-breakpoints":3,"content-all-pages":1064,"live-demo:cq-breakpoint-transition":1624},{"id":4,"title":5,"body":6,"description":1047,"extension":1048,"meta":1049,"navigation":209,"path":1060,"seo":1061,"stem":1062,"__hash__":1063},"content\u002Fcss-only-micro-interactions-animations\u002Fcontainer-aware-motion\u002Flayout-change-animations-at-container-breakpoints\u002Findex.md","Animating Changes at Container Breakpoints",{"type":7,"value":8,"toc":1035},"minimark",[9,13,28,33,46,156,160,163,167,649,652,656,671,733,745,749,766,879,898,902,909,924,928,944,948,951,955,965,969,976,985,991,997,1001,1031],[10,11,5],"h1",{"id":12},"animating-changes-at-container-breakpoints",[14,15,16,17,22,23,27],"p",{},"A component built with container queries changes its styles when its container crosses a size threshold: a card goes from stacked to side-by-side, a toolbar collapses its labels, a heading steps down a size. By default those changes are instant. When the container is resized interactively — a sidebar toggles, a split pane is dragged, a dashboard widget is resized — the instant switch can look like a glitch, the component \"popping\" from one form to the other. Transitions can smooth that change, but only for some properties, and too much motion at a breakpoint makes resizing feel heavy. This page covers what can transition, what cannot, and how to keep breakpoint motion helpful. It belongs to ",[18,19,21],"a",{"href":20},"\u002Fcss-only-micro-interactions-animations\u002Fcontainer-aware-motion\u002F","Container-Aware Motion"," in the ",[18,24,26],{"href":25},"\u002Fcss-only-micro-interactions-animations\u002F","CSS-Only Micro-Interactions & Animations"," guide.",[29,30,32],"h2",{"id":31},"container-query-changes-are-ordinary-style-changes","Container query changes are ordinary style changes",[14,34,35,36,40,41,45],{},"A transition runs whenever a property's computed value changes after the element has rendered — regardless of ",[37,38,39],"em",{},"why"," it changed. A container query that starts matching changes computed values exactly as a class toggle would, so any transition declared on those properties runs. No special syntax is required; the transition simply has to be declared outside the ",[42,43,44],"code",{},"@container"," block so it applies in both states.",[47,48,54,55,54,59,54,63,54,71,54,82,54,90,54,96,54,102,54,108,54,115,54,121,54,125,54,131,54,136,54,140,54,143,54,147,54,152],"svg",{"viewBox":49,"role":50,"ariaLabel":51,"xmlns":52,"style":53},"0 0 720 300","img","A card crossing a container breakpoint while its container is resized: continuous properties like padding and radius transition, while the layout switch from stacked to side-by-side snaps","http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg","width:100%;height:auto;max-width:720px;margin:2rem 0","\n  ",[56,57,58],"title",{},"Some properties glide, the layout snaps",[60,61,62],"desc",{},"Left, a narrow container with a stacked card: image above text, small padding and radius. Right, a wide container with the same card side by side: image beside text, larger padding and radius. Between them, labels note that padding, gap, radius, font size and colour transition, while the switch from stacked to side-by-side happens instantly.",[64,65,70],"text",{"textAnchor":66,"x":67,"y":68,"style":69},"middle","360","26","text-anchor:middle;fill:currentColor;font:700 17px sans-serif","Crossing a 28rem container breakpoint",[72,73],"rect",{"x":74,"y":75,"width":76,"height":76,"rx":77,"fill":78,"stroke":79,"strokeWidth":80,"opacity":81},"40","56","200","8","none","currentColor","1.5","0.6",[72,83],{"x":75,"y":84,"width":85,"height":86,"rx":87,"fill":88,"opacity":89},"72","168","80","4","#7aa2ff","0.4",[72,91],{"x":75,"y":92,"width":85,"height":93,"rx":94,"fill":79,"opacity":95},"164","12","3","0.3",[72,97],{"x":75,"y":98,"width":99,"height":100,"rx":94,"fill":79,"opacity":101},"184","120","10","0.2",[72,103],{"x":104,"y":86,"width":105,"height":106,"rx":107,"fill":78,"stroke":79,"strokeWidth":80,"opacity":81},"400","290","150","16",[72,109],{"x":110,"y":111,"width":112,"height":113,"rx":114,"fill":88,"opacity":89},"424","104","110","102","6",[72,116],{"x":117,"y":118,"width":119,"height":120,"rx":94,"fill":79,"opacity":95},"550","112","116","14",[72,122],{"x":117,"y":123,"width":124,"height":100,"rx":94,"fill":79,"opacity":101},"136","90",[64,126,130],{"textAnchor":66,"x":127,"y":128,"style":129},"320","130","text-anchor:middle;fill:currentColor;font:12px sans-serif","transitions:",[64,132,135],{"textAnchor":66,"x":127,"y":133,"style":134},"148","text-anchor:middle;fill:currentColor;font:12px ui-monospace,monospace","padding, radius",[64,137,139],{"textAnchor":66,"x":127,"y":138,"style":134},"166","font-size, color",[64,141,142],{"textAnchor":66,"x":127,"y":76,"style":129},"snaps:",[64,144,146],{"textAnchor":66,"x":127,"y":145,"style":134},"218","grid areas, direction",[64,148,151],{"textAnchor":66,"x":149,"y":150,"style":129},"140","280","narrow: stacked",[64,153,155],{"textAnchor":66,"x":154,"y":150,"style":129},"545","wide: side by side",[29,157,159],{"id":158},"the-complete-implementation","The complete implementation",[14,161,162],{},"Drag the demo's resize handle across the breakpoint. The card's layout switches instantly, but its padding, radius, heading size and accent colour transition, so the change reads as a deliberate adjustment rather than a jump.",[164,165],"live-demo",{"name":166},"cq-breakpoint-transition",[168,169,174],"pre",{"className":170,"code":171,"language":172,"meta":173,"style":173},"language-css shiki shiki-themes github-light-high-contrast github-dark-high-contrast",".card-wrap {\n  container-type: inline-size;\n}\n\n.card {\n  display: grid;\n  gap: 0.75rem;\n  padding: 0.75rem;\n  border-radius: 8px;\n  border: 1px solid #cbd5e1;\n  background: #fff;\n  \u002F* Declared outside @container so it applies in both states. *\u002F\n  transition:\n    padding 200ms ease-out,\n    border-radius 200ms ease-out,\n    gap 200ms ease-out,\n    border-color 200ms ease-out;\n}\n\n.card h3 {\n  margin: 0;\n  font-size: 1.1rem;\n  transition: font-size 200ms ease-out;\n}\n\n@container (inline-size > 28rem) {\n  .card {\n    grid-template-columns: 10rem 1fr;   \u002F* discrete: snaps *\u002F\n    align-items: start;\n    gap: 1.25rem;\n    padding: 1.5rem;\n    border-radius: 16px;\n    border-color: #2563eb;\n  }\n  .card h3 { font-size: 1.4rem; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .card, .card h3 { transition: none; }\n}\n","css","",[42,175,176,189,198,204,211,219,234,251,265,280,301,314,321,330,348,362,376,390,395,400,411,424,439,455,460,465,473,481,505,518,533,546,560,573,579,602,607,612,621,644],{"__ignoreMap":173},[177,178,181,185],"span",{"class":179,"line":180},"line",1,[177,182,184],{"class":183},"s-5SL",".card-wrap",[177,186,188],{"class":187},"suds8"," {\n",[177,190,192,195],{"class":179,"line":191},2,[177,193,194],{"class":183},"  container-type",[177,196,197],{"class":187},": inline-size;\n",[177,199,201],{"class":179,"line":200},3,[177,202,203],{"class":187},"}\n",[177,205,207],{"class":179,"line":206},4,[177,208,210],{"emptyLinePlaceholder":209},true,"\n",[177,212,214,217],{"class":179,"line":213},5,[177,215,216],{"class":183},".card",[177,218,188],{"class":187},[177,220,222,225,228,231],{"class":179,"line":221},6,[177,223,224],{"class":183},"  display",[177,226,227],{"class":187},": ",[177,229,230],{"class":183},"grid",[177,232,233],{"class":187},";\n",[177,235,237,240,242,245,249],{"class":179,"line":236},7,[177,238,239],{"class":183},"  gap",[177,241,227],{"class":187},[177,243,244],{"class":183},"0.75",[177,246,248],{"class":247},"sHUrx","rem",[177,250,233],{"class":187},[177,252,254,257,259,261,263],{"class":179,"line":253},8,[177,255,256],{"class":183},"  padding",[177,258,227],{"class":187},[177,260,244],{"class":183},[177,262,248],{"class":247},[177,264,233],{"class":187},[177,266,268,271,273,275,278],{"class":179,"line":267},9,[177,269,270],{"class":183},"  border-radius",[177,272,227],{"class":187},[177,274,77],{"class":183},[177,276,277],{"class":247},"px",[177,279,233],{"class":187},[177,281,283,286,288,291,293,296,299],{"class":179,"line":282},10,[177,284,285],{"class":183},"  border",[177,287,227],{"class":187},[177,289,290],{"class":183},"1",[177,292,277],{"class":247},[177,294,295],{"class":183}," solid",[177,297,298],{"class":183}," #cbd5e1",[177,300,233],{"class":187},[177,302,304,307,309,312],{"class":179,"line":303},11,[177,305,306],{"class":183},"  background",[177,308,227],{"class":187},[177,310,311],{"class":183},"#fff",[177,313,233],{"class":187},[177,315,317],{"class":179,"line":316},12,[177,318,320],{"class":319},"sLBg1","  \u002F* Declared outside @container so it applies in both states. *\u002F\n",[177,322,324,327],{"class":179,"line":323},13,[177,325,326],{"class":183},"  transition",[177,328,329],{"class":187},":\n",[177,331,333,336,339,342,345],{"class":179,"line":332},14,[177,334,335],{"class":183},"    padding",[177,337,338],{"class":183}," 200",[177,340,341],{"class":247},"ms",[177,343,344],{"class":183}," ease-out",[177,346,347],{"class":187},",\n",[177,349,351,354,356,358,360],{"class":179,"line":350},15,[177,352,353],{"class":187},"    border-radius ",[177,355,76],{"class":183},[177,357,341],{"class":247},[177,359,344],{"class":183},[177,361,347],{"class":187},[177,363,365,368,370,372,374],{"class":179,"line":364},16,[177,366,367],{"class":187},"    gap ",[177,369,76],{"class":183},[177,371,341],{"class":247},[177,373,344],{"class":183},[177,375,347],{"class":187},[177,377,379,382,384,386,388],{"class":179,"line":378},17,[177,380,381],{"class":187},"    border-color ",[177,383,76],{"class":183},[177,385,341],{"class":247},[177,387,344],{"class":183},[177,389,233],{"class":187},[177,391,393],{"class":179,"line":392},18,[177,394,203],{"class":187},[177,396,398],{"class":179,"line":397},19,[177,399,210],{"emptyLinePlaceholder":209},[177,401,403,405,409],{"class":179,"line":402},20,[177,404,216],{"class":183},[177,406,408],{"class":407},"sne4z"," h3",[177,410,188],{"class":187},[177,412,414,417,419,422],{"class":179,"line":413},21,[177,415,416],{"class":183},"  margin",[177,418,227],{"class":187},[177,420,421],{"class":183},"0",[177,423,233],{"class":187},[177,425,427,430,432,435,437],{"class":179,"line":426},22,[177,428,429],{"class":183},"  font-size",[177,431,227],{"class":187},[177,433,434],{"class":183},"1.1",[177,436,248],{"class":247},[177,438,233],{"class":187},[177,440,442,444,447,449,451,453],{"class":179,"line":441},23,[177,443,326],{"class":183},[177,445,446],{"class":187},": font-size ",[177,448,76],{"class":183},[177,450,341],{"class":247},[177,452,344],{"class":183},[177,454,233],{"class":187},[177,456,458],{"class":179,"line":457},24,[177,459,203],{"class":187},[177,461,463],{"class":179,"line":462},25,[177,464,210],{"emptyLinePlaceholder":209},[177,466,468,470],{"class":179,"line":467},26,[177,469,44],{"class":247},[177,471,472],{"class":187}," (inline-size > 28rem) {\n",[177,474,476,479],{"class":179,"line":475},27,[177,477,478],{"class":183},"  .card",[177,480,188],{"class":187},[177,482,484,487,489,491,493,496,499,502],{"class":179,"line":483},28,[177,485,486],{"class":183},"    grid-template-columns",[177,488,227],{"class":187},[177,490,100],{"class":183},[177,492,248],{"class":247},[177,494,495],{"class":183}," 1",[177,497,498],{"class":247},"fr",[177,500,501],{"class":187},";   ",[177,503,504],{"class":319},"\u002F* discrete: snaps *\u002F\n",[177,506,508,511,513,516],{"class":179,"line":507},29,[177,509,510],{"class":183},"    align-items",[177,512,227],{"class":187},[177,514,515],{"class":183},"start",[177,517,233],{"class":187},[177,519,521,524,526,529,531],{"class":179,"line":520},30,[177,522,523],{"class":183},"    gap",[177,525,227],{"class":187},[177,527,528],{"class":183},"1.25",[177,530,248],{"class":247},[177,532,233],{"class":187},[177,534,536,538,540,542,544],{"class":179,"line":535},31,[177,537,335],{"class":183},[177,539,227],{"class":187},[177,541,80],{"class":183},[177,543,248],{"class":247},[177,545,233],{"class":187},[177,547,549,552,554,556,558],{"class":179,"line":548},32,[177,550,551],{"class":183},"    border-radius",[177,553,227],{"class":187},[177,555,107],{"class":183},[177,557,277],{"class":247},[177,559,233],{"class":187},[177,561,563,566,568,571],{"class":179,"line":562},33,[177,564,565],{"class":183},"    border-color",[177,567,227],{"class":187},[177,569,570],{"class":183},"#2563eb",[177,572,233],{"class":187},[177,574,576],{"class":179,"line":575},34,[177,577,578],{"class":187},"  }\n",[177,580,582,584,586,589,592,594,597,599],{"class":179,"line":581},35,[177,583,478],{"class":183},[177,585,408],{"class":407},[177,587,588],{"class":187}," { ",[177,590,591],{"class":183},"font-size",[177,593,227],{"class":187},[177,595,596],{"class":183},"1.4",[177,598,248],{"class":247},[177,600,601],{"class":187},"; }\n",[177,603,605],{"class":179,"line":604},36,[177,606,203],{"class":187},[177,608,610],{"class":179,"line":609},37,[177,611,210],{"emptyLinePlaceholder":209},[177,613,615,618],{"class":179,"line":614},38,[177,616,617],{"class":247},"@media",[177,619,620],{"class":187}," (prefers-reduced-motion: reduce) {\n",[177,622,624,626,629,631,633,635,638,640,642],{"class":179,"line":623},39,[177,625,478],{"class":183},[177,627,628],{"class":187},", ",[177,630,216],{"class":183},[177,632,408],{"class":407},[177,634,588],{"class":187},[177,636,637],{"class":183},"transition",[177,639,227],{"class":187},[177,641,78],{"class":183},[177,643,601],{"class":187},[177,645,647],{"class":179,"line":646},40,[177,648,203],{"class":187},[14,650,651],{},"Every transitioned property here is one that changes smoothly without implying movement across the screen: spacing, corner radius, text size and colour. The structural change — going from one column to two — snaps, and that is fine. The softer properties around it absorb the visual discontinuity. Test the result by dragging slowly across the breakpoint, not just by jumping between two sizes: the slow drag is how real users encounter it, and it is where an overlong duration or a transition on the wrong property becomes obvious. If the component looks like it is catching up with the drag, shorten the duration or drop a property.",[29,653,655],{"id":654},"the-key-technique-transition-the-frame-not-the-layout","The key technique: transition the frame, not the layout",[14,657,658,659,662,663,666,667,670],{},"The layout switch itself is usually a keyword change — a different ",[42,660,661],{},"grid-template-columns"," track count, ",[42,664,665],{},"flex-direction",", a different set of ",[42,668,669],{},"grid-template-areas"," — and those are discrete. Trying to animate them directly either does nothing or requires elaborate workarounds. Instead, pick the properties that visually \"frame\" the component and let them carry the transition. The eye reads the frame changing smoothly and accepts the content rearranging inside it.",[47,672,54,675,54,678,54,681,54,684,54,690,54,693,54,699,54,703,54,705,54,709,54,713,54,717,54,720,54,723,54,726,54,729],{"viewBox":673,"role":50,"ariaLabel":674,"xmlns":52,"style":53},"0 0 720 250","Two columns: discrete properties that snap at a breakpoint, such as grid-template-areas, flex-direction and display, and continuous properties that can transition, such as padding, gap, border-radius, font-size and colours",[56,676,677],{},"Discrete versus continuous at a breakpoint",[60,679,680],{},"Left column titled snaps lists grid-template-areas, flex-direction, display, a different number of grid tracks, and order. Right column titled can transition lists padding and gap, border-radius, font-size and line-height, colours and borders, and opacity.",[64,682,683],{"textAnchor":66,"x":67,"y":68,"style":69},"What a breakpoint can animate",[72,685],{"x":74,"y":686,"width":687,"height":688,"rx":100,"fill":79,"opacity":689},"50","300","170","0.08",[72,691],{"x":692,"y":686,"width":687,"height":688,"rx":100,"fill":88,"opacity":101},"380",[64,694,698],{"textAnchor":66,"x":695,"y":696,"style":697},"190","78","text-anchor:middle;fill:currentColor;font:600 14px sans-serif","Snaps",[64,700,702],{"textAnchor":66,"x":701,"y":696,"style":697},"530","Can transition",[64,704,669],{"textAnchor":66,"x":695,"y":112,"style":134},[64,706,708],{"textAnchor":66,"x":695,"y":707,"style":134},"134","flex-direction, display",[64,710,712],{"textAnchor":66,"x":695,"y":711,"style":134},"158","track count changes",[64,714,716],{"textAnchor":66,"x":695,"y":715,"style":134},"182","order",[64,718,719],{"textAnchor":66,"x":701,"y":112,"style":134},"padding, gap",[64,721,722],{"textAnchor":66,"x":701,"y":707,"style":134},"border-radius",[64,724,725],{"textAnchor":66,"x":701,"y":711,"style":134},"font-size, colours",[64,727,728],{"textAnchor":66,"x":701,"y":715,"style":134},"opacity",[64,730,732],{"textAnchor":66,"x":67,"y":731,"style":129},"242","Frame the change with the right column; let the left column switch.",[14,734,735,736,628,739,628,742,744],{},"Note that several of the \"can transition\" properties — ",[42,737,738],{},"padding",[42,740,741],{},"gap",[42,743,591],{}," — trigger layout on every frame. During a 200ms transition on one component, that is acceptable. It becomes a problem if many components cross breakpoints at once, for example when a dashboard sidebar collapses and twenty widgets change size together. In that situation, keep only colour and radius transitions, which are paint-only, or none at all.",[29,746,748],{"id":747},"variation-fading-in-content-that-appears-at-a-breakpoint","Variation: fading in content that appears at a breakpoint",[14,750,751,752,755,756,758,759,762,763,765],{},"Container queries often reveal extra content at larger sizes — a description, a secondary action, a metadata row — by switching it from ",[42,753,754],{},"display: none"," to visible. A plain transition cannot animate that, because an element with ",[42,757,754],{}," has no rendered style to transition from. ",[42,760,761],{},"@starting-style"," provides one. It defines the values an element starts from the first time it is rendered, including when it stops being ",[42,764,754],{},":",[168,767,769],{"className":170,"code":768,"language":172,"meta":173,"style":173},".card__meta {\n  display: none;\n  opacity: 1;\n  transition: opacity 200ms ease-out;\n}\n\n@container (inline-size > 28rem) {\n  .card__meta { display: block; }\n\n  @starting-style {\n    .card__meta { opacity: 0; }\n  }\n}\n",[42,770,771,778,788,799,814,818,822,828,845,849,856,871,875],{"__ignoreMap":173},[177,772,773,776],{"class":179,"line":180},[177,774,775],{"class":183},".card__meta",[177,777,188],{"class":187},[177,779,780,782,784,786],{"class":179,"line":191},[177,781,224],{"class":183},[177,783,227],{"class":187},[177,785,78],{"class":183},[177,787,233],{"class":187},[177,789,790,793,795,797],{"class":179,"line":200},[177,791,792],{"class":183},"  opacity",[177,794,227],{"class":187},[177,796,290],{"class":183},[177,798,233],{"class":187},[177,800,801,803,806,808,810,812],{"class":179,"line":206},[177,802,326],{"class":183},[177,804,805],{"class":187},": opacity ",[177,807,76],{"class":183},[177,809,341],{"class":247},[177,811,344],{"class":183},[177,813,233],{"class":187},[177,815,816],{"class":179,"line":213},[177,817,203],{"class":187},[177,819,820],{"class":179,"line":221},[177,821,210],{"emptyLinePlaceholder":209},[177,823,824,826],{"class":179,"line":236},[177,825,44],{"class":247},[177,827,472],{"class":187},[177,829,830,833,835,838,840,843],{"class":179,"line":253},[177,831,832],{"class":183},"  .card__meta",[177,834,588],{"class":187},[177,836,837],{"class":183},"display",[177,839,227],{"class":187},[177,841,842],{"class":183},"block",[177,844,601],{"class":187},[177,846,847],{"class":179,"line":267},[177,848,210],{"emptyLinePlaceholder":209},[177,850,851,854],{"class":179,"line":282},[177,852,853],{"class":247},"  @starting-style",[177,855,188],{"class":187},[177,857,858,861,863,865,867,869],{"class":179,"line":303},[177,859,860],{"class":183},"    .card__meta",[177,862,588],{"class":187},[177,864,728],{"class":183},[177,866,227],{"class":187},[177,868,421],{"class":183},[177,870,601],{"class":187},[177,872,873],{"class":179,"line":316},[177,874,578],{"class":187},[177,876,877],{"class":179,"line":323},[177,878,203],{"class":187},[14,880,881,882,884,885,888,889,892,893,897],{},"When the container grows past 28rem, the metadata row appears and fades from 0 to 1. When it shrinks again, the row disappears instantly, which is usually correct for a resize: fading content out while space is being taken away tends to look like a rendering delay. If the exit should fade too, add ",[42,883,837],{}," to the transition list with ",[42,886,887],{},"transition-behavior: allow-discrete"," and an ",[42,890,891],{},"opacity: 0"," state for the narrow case, as described in ",[18,894,896],{"href":895},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Ftransitioning-display-with-allow-discrete\u002F","Transitioning display With allow-discrete",". Keep the fade short; the goal is to soften the appearance, not to draw attention to it.",[29,899,901],{"id":900},"why-breakpoint-motion-should-be-small","Why breakpoint motion should be small",[14,903,904,905,908],{},"Two facts shape the design. First, most breakpoint crossings are never watched: a component usually renders at its final size when the page loads, and transitions do not run for an element's initial style. Second, when a crossing ",[37,906,907],{},"is"," watched, the user is almost always resizing something on purpose, and their attention is on the resize, not the component. Large or slow motion at that moment makes the interface feel like it is lagging behind the user's hand.",[14,910,911,912,915,916,919,920,923],{},"Keep transitions short — 150 to 250 milliseconds — and limited to properties that do not move content across the component. Avoid transitioning ",[42,913,914],{},"translate"," or ",[42,917,918],{},"scale"," of whole components at breakpoints; content sliding around while the user drags a divider is disorienting. And do not attempt to \"animate the layout\" with tricks such as transitioning huge ",[42,921,922],{},"max-height"," values; they are slow, imprecise and interact badly with continuous resizing.",[29,925,927],{"id":926},"when-the-layout-change-should-animate-view-transitions","When the layout change should animate: view transitions",[14,929,930,931,934,935,938,939,943],{},"Sometimes a layout change is triggered by an explicit action rather than a drag — clicking \"collapse sidebar\", for instance — and the whole rearrangement should animate. That is a job for a view transition: wrap the action that changes the container's size in ",[42,932,933],{},"document.startViewTransition()",", and give the component a ",[42,936,937],{},"view-transition-name",". The browser snapshots the old and new layouts and morphs between them on the compositor, including the discrete parts CSS transitions cannot handle. ",[18,940,942],{"href":941},"\u002Fcss-only-micro-interactions-animations\u002Fview-transitions-for-css-developers\u002Fsame-document-view-transitions\u002F","Same-Document View Transitions"," covers the mechanics. For continuous drags, stick with small CSS transitions; a view transition per frame of a drag is not practical.",[29,945,947],{"id":946},"rapid-back-and-forth-crossings","Rapid back-and-forth crossings",[14,949,950],{},"When a user drags a divider slowly across a breakpoint, the container can cross it several times in quick succession, and each crossing restarts the transitions. Because transitions retarget from their current value, this produces a gentle wobble rather than a flicker, which is one more reason to prefer transitions over keyframe animations for breakpoint changes. There is no CSS hysteresis — a way to switch at 28rem going up and 27rem going down — so if a component sits at a common container width and flickers between states, adjust the breakpoint rather than the animation.",[29,952,954],{"id":953},"browser-support","Browser support",[14,956,957,958,960,961,964],{},"Size container queries are supported in Chrome and Edge 105+, Firefox 110+ and Safari 16+. The ",[42,959,637],{}," shorthand is supported in Chrome 26+, Edge 12+, Firefox 16+ and Safari 9+. Same-document view transitions are supported in Chrome and Edge 111+, Firefox 144+ and Safari 18+. ",[42,962,963],{},"prefers-reduced-motion"," is supported in Chrome 74+, Edge 79+, Firefox 63+ and Safari 10.1+.",[29,966,968],{"id":967},"faq","FAQ",[14,970,971,975],{},[972,973,974],"strong",{},"Do CSS transitions run when a container query starts matching?","\nYes. A container query changing a property's computed value is a style change like any other, so a transition declared on that property runs. That includes changes caused by a sidebar opening, a panel being resized, or the window being dragged.",[14,977,978,981,982,984],{},[972,979,980],{},"Can I transition a change from flex-direction row to column?","\nNo. ",[42,983,665],{}," and other keyword layout switches are discrete and snap instantly. Transition the continuous properties around the switch, such as padding, gap, radius and font size, or use a view transition to animate the layout change as a whole.",[14,986,987,990],{},[972,988,989],{},"Should layout changes at breakpoints animate at all?","\nOnly subtly. Users rarely watch a component cross a breakpoint, and when they do, it is usually because they are resizing something. Short transitions on a few visual properties smooth the change; long or large motion makes resizing feel sluggish.",[14,992,993,996],{},[972,994,995],{},"How do I stop breakpoint transitions from firing on page load?","\nTransitions do not run for an element's initial style, so a component that first renders at a wide size does not animate. They only run when the size changes after the first render, which is usually the behaviour you want.",[29,998,1000],{"id":999},"related","Related",[1002,1003,1004,1010,1017,1024],"ul",{},[1005,1006,1007,1009],"li",{},[18,1008,21],{"href":20}," — the parent guide.",[1005,1011,1012,1016],{},[18,1013,1015],{"href":1014},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns\u002Fcontainer-query-triggered-keyframe-animations\u002F","Container-Query-Triggered Keyframe Animations"," — one-off sequences at breakpoints.",[1005,1018,1019,1023],{},[18,1020,1022],{"href":1021},"\u002Fcss-only-micro-interactions-animations\u002Fcontainer-aware-motion\u002Fsuppressing-motion-in-small-containers\u002F","Suppressing Motion in Small Containers"," — turning motion off where space is tight.",[1005,1025,1026,1030],{},[18,1027,1029],{"href":1028},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Fbuilding-responsive-cards-with-container-queries\u002F","Building Responsive Cards With Container Queries"," — the layouts being animated.",[1032,1033,1034],"style",{},"html pre.shiki code .s-5SL, html code.shiki .s-5SL{--shiki-default:#023B95;--shiki-dark:#91CBFF}html pre.shiki code .suds8, html code.shiki .suds8{--shiki-default:#0E1116;--shiki-dark:#F0F3F6}html pre.shiki code .sHUrx, html code.shiki .sHUrx{--shiki-default:#A0111F;--shiki-dark:#FF9492}html pre.shiki code .sLBg1, html code.shiki .sLBg1{--shiki-default:#66707B;--shiki-dark:#BDC4CC}html pre.shiki code .sne4z, html code.shiki .sne4z{--shiki-default:#024C1A;--shiki-dark:#72F088}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":173,"searchDepth":191,"depth":191,"links":1036},[1037,1038,1039,1040,1041,1042,1043,1044,1045,1046],{"id":31,"depth":191,"text":32},{"id":158,"depth":191,"text":159},{"id":654,"depth":191,"text":655},{"id":747,"depth":191,"text":748},{"id":900,"depth":191,"text":901},{"id":926,"depth":191,"text":927},{"id":946,"depth":191,"text":947},{"id":953,"depth":191,"text":954},{"id":967,"depth":191,"text":968},{"id":999,"depth":191,"text":1000},"What happens when a container query flips a component’s styles mid-resize: which changes can transition, which snap, and how to keep breakpoint motion subtle.","md",{"pageTitle":5,"datePublished":1050,"dateModified":1050,"faq":1051},"2026-09-18",[1052,1054,1056,1058],{"q":974,"a":1053},"Yes. A container query changing a property's computed value is a style change like any other, so a transition declared on that property runs. That includes changes caused by a sidebar opening, a panel being resized, or the window being dragged.",{"q":980,"a":1055},"No. flex-direction and other keyword layout switches are discrete and snap instantly. Transition the continuous properties around the switch, such as padding, gap, radius and font size, or use a view transition to animate the layout change as a whole.",{"q":989,"a":1057},"Only subtly. Users rarely watch a component cross a breakpoint, and when they do, it is usually because they are resizing something. Short transitions on a few visual properties smooth the change; long or large motion makes resizing feel sluggish.",{"q":995,"a":1059},"Transitions do not run for an element's initial style, so a component that first renders at a wide size does not animate. They only run when the size changes after the first render, which is usually the behaviour you want.","\u002Fcss-only-micro-interactions-animations\u002Fcontainer-aware-motion\u002Flayout-change-animations-at-container-breakpoints",{"title":5,"description":1047},"css-only-micro-interactions-animations\u002Fcontainer-aware-motion\u002Flayout-change-animations-at-container-breakpoints\u002Findex","BLW2jZUHy50MogNnCcSidbDkBmrGCbFAtPKjCWmAgtw",[1065,1068,1071,1074,1077,1080,1083,1086,1089,1092,1095,1098,1101,1104,1107,1110,1113,1116,1119,1122,1125,1128,1131,1132,1135,1138,1141,1144,1147,1150,1153,1156,1159,1162,1165,1168,1171,1174,1177,1180,1183,1186,1189,1192,1195,1198,1201,1204,1207,1210,1213,1216,1219,1222,1225,1228,1231,1234,1237,1240,1243,1246,1249,1252,1255,1258,1261,1264,1267,1270,1273,1276,1279,1282,1285,1288,1291,1294,1297,1300,1303,1306,1309,1312,1315,1318,1321,1324,1327,1330,1333,1336,1339,1342,1345,1348,1351,1354,1357,1360,1363,1366,1369,1372,1375,1378,1381,1384,1387,1390,1393,1396,1399,1402,1405,1408,1411,1414,1417,1420,1423,1426,1429,1432,1435,1438,1441,1444,1447,1450,1453,1456,1459,1462,1465,1468,1471,1474,1477,1480,1483,1486,1489,1492,1495,1498,1501,1504,1507,1510,1513,1516,1519,1522,1525,1528,1531,1534,1537,1540,1543,1546,1549,1552,1555,1558,1561,1564,1567,1570,1573,1576,1579,1582,1585,1588,1591,1594,1597,1600,1603,1606,1609,1612,1615,1618,1621],{"path":1066,"title":1067},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations\u002Fcreating-accessible-focus-indicators","Creating Accessible Focus Indicators: Building a Ring That Survives Any Background",{"path":1069,"title":1070},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations\u002Fflashing-content-and-seizure-thresholds","Flashing Content and Seizure Thresholds",{"path":1072,"title":1073},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations\u002Fforced-colors-mode-and-animations","Forced Colors Mode and Animations",{"path":1075,"title":1076},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations","Accessibility in CSS Animations: Patterns, Specs & Best Practices",{"path":1078,"title":1079},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations\u002Fpause-controls-for-looping-animations","Pause Controls for Looping CSS Animations: Meeting WCAG 2.2.2",{"path":1081,"title":1082},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations\u002Fprefers-reduced-motion-recipes","prefers-reduced-motion Recipes: A Reduction for Every Common Effect",{"path":1084,"title":1085},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations\u002Freducing-motion-preferences-in-css","Reducing Motion Preferences in CSS: How the Setting Becomes a Media Feature",{"path":1087,"title":1088},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations\u002Ftarget-size-and-pointer-accessibility","Target Size and Pointer Accessibility: Meeting 2.5.8 Without Redesigning",{"path":1090,"title":1091},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations\u002Fvestibular-safe-animation-patterns","Vestibular-Safe Animation Patterns: Why Some Motion Makes People Sick",{"path":1093,"title":1094},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations\u002Fwcag-motion-success-criteria","WCAG Motion Success Criteria: What Each One Actually Requires",{"path":1096,"title":1097},"\u002Fcss-only-micro-interactions-animations\u002Fclip-path-and-mask-animations\u002Fanimated-gradient-borders-with-property","Animated Gradient Borders With @property: A Spinning Highlight Without Extra Elements",{"path":1099,"title":1100},"\u002Fcss-only-micro-interactions-animations\u002Fclip-path-and-mask-animations\u002Fclip-path-reveal-animations","Clip-Path Reveal Animations: Wipes, Irises and Corners Without Extra Markup",{"path":1102,"title":1103},"\u002Fcss-only-micro-interactions-animations\u002Fclip-path-and-mask-animations","Clip-Path & Mask Animations: Animating Visibility Instead of Position",{"path":1105,"title":1106},"\u002Fcss-only-micro-interactions-animations\u002Fclip-path-and-mask-animations\u002Fmask-image-fade-edges","Fading Edges With mask-image: Soft Boundaries That Work on Any Background",{"path":1108,"title":1109},"\u002Fcss-only-micro-interactions-animations\u002Fclip-path-and-mask-animations\u002Fmorphing-shapes-with-clip-path-polygon","Morphing Shapes With clip-path: polygon(): Point-Matched Transitions",{"path":1111,"title":1112},"\u002Fcss-only-micro-interactions-animations\u002Fcolor-and-theme-transitions\u002Fanimating-gradients","Animating CSS Gradients: Smooth Colour Motion Without Jumps",{"path":1114,"title":1115},"\u002Fcss-only-micro-interactions-animations\u002Fcolor-and-theme-transitions\u002Fcolor-mix-hover-states","Hover and Active States With color-mix(): One Token, Every Shade",{"path":1117,"title":1118},"\u002Fcss-only-micro-interactions-animations\u002Fcolor-and-theme-transitions","Color & Theme Transitions: Colour as Part of the Motion System",{"path":1120,"title":1121},"\u002Fcss-only-micro-interactions-animations\u002Fcolor-and-theme-transitions\u002Flight-dark-function-for-themes","Light and Dark Themes With light-dark(): One Declaration per Colour",{"path":1123,"title":1124},"\u002Fcss-only-micro-interactions-animations\u002Fcolor-and-theme-transitions\u002Fsmooth-theme-switching-transitions","Smooth Theme Switching: Crossfades, Circular Reveals and No Flash",{"path":1126,"title":1127},"\u002Fcss-only-micro-interactions-animations\u002Fcontainer-aware-motion\u002Fcontainer-query-hover-affordances","Container Query Hover Affordances: When Narrow Means Persistent, Not Hidden",{"path":1129,"title":1130},"\u002Fcss-only-micro-interactions-animations\u002Fcontainer-aware-motion","Container-Aware Motion: Animation Sized by the Space a Component Actually Has",{"path":1060,"title":5},{"path":1133,"title":1134},"\u002Fcss-only-micro-interactions-animations\u002Fcontainer-aware-motion\u002Fmotion-driven-by-container-style-queries","Motion Driven by Container Style Queries",{"path":1136,"title":1137},"\u002Fcss-only-micro-interactions-animations\u002Fcontainer-aware-motion\u002Fmotion-that-scales-with-container-size","Motion That Scales with Container Size: cqi, cqb, and Derived Durations",{"path":1139,"title":1140},"\u002Fcss-only-micro-interactions-animations\u002Fcontainer-aware-motion\u002Fsuppressing-motion-in-small-containers","Suppressing Motion in Small Containers: Deliberately Animating Nothing",{"path":1142,"title":1143},"\u002Fcss-only-micro-interactions-animations\u002Fcss-animation-vs-web-animations-api\u002Fcontrolling-css-animations-from-javascript","Controlling CSS Animations From JavaScript",{"path":1145,"title":1146},"\u002Fcss-only-micro-interactions-animations\u002Fcss-animation-vs-web-animations-api","CSS Animation vs the Web Animations API: A Decision Guide",{"path":1148,"title":1149},"\u002Fcss-only-micro-interactions-animations\u002Fcss-animation-vs-web-animations-api\u002Fwaapi-vs-css-for-interruptible-ui","Interruptible UI: CSS Transitions vs WAAPI",{"path":1151,"title":1152},"\u002Fcss-only-micro-interactions-animations\u002Fcss-animation-vs-web-animations-api\u002Fwhen-to-use-javascript-animation","When to Use JavaScript Instead of CSS for Animation",{"path":1154,"title":1155},"\u002Fcss-only-micro-interactions-animations\u002Fcss-custom-properties-architecture\u002Fanimating-custom-properties-with-at-property","Animating Custom Properties with @property: Typed Variables That Interpolate",{"path":1157,"title":1158},"\u002Fcss-only-micro-interactions-animations\u002Fcss-custom-properties-architecture\u002Fcustom-property-fallbacks-and-invalid-values","Custom Property Fallbacks and Invalid Values",{"path":1160,"title":1161},"\u002Fcss-only-micro-interactions-animations\u002Fcss-custom-properties-architecture\u002Ffluid-spacing-tokens-driving-transition-durations","Fluid Spacing Tokens That Drive Transition Durations",{"path":1163,"title":1164},"\u002Fcss-only-micro-interactions-animations\u002Fcss-custom-properties-architecture","CSS Custom Properties Architecture: Scalable Design Systems & Dynamic UI",{"path":1166,"title":1167},"\u002Fcss-only-micro-interactions-animations\u002Fcss-custom-properties-architecture\u002Fregistered-properties-and-type-safety","Registered Properties and Type Safety: @property as a Contract for Design Tokens",{"path":1169,"title":1170},"\u002Fcss-only-micro-interactions-animations\u002Fcss-custom-properties-architecture\u002Fscoping-custom-properties-to-components","Scoping Custom Properties to Components",{"path":1172,"title":1173},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Fcss-transition-timing-functions","CSS Transition Timing Functions: ease, cubic-bezier(), steps() and linear()",{"path":1175,"title":1176},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals","CSS Transition Fundamentals: Architecture, Performance & Patterns",{"path":1178,"title":1179},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Finterrupted-and-reversing-transitions","Interrupted and Reversing Transitions: What Happens Mid-Flight",{"path":1181,"title":1182},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Fstarting-style-entry-animations","@starting-style: Animating an Element's Very First Style Change",{"path":1184,"title":1185},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Ftransition-delay-choreography","Choreographing Motion With transition-delay",{"path":1187,"title":1188},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Ftransition-shorthand-and-multiple-properties","The transition Shorthand and Multiple Properties",{"path":1190,"title":1191},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Ftransitioning-display-with-allow-discrete","Transitioning display with transition-behavior: allow-discrete and @starting-style",{"path":1193,"title":1194},"\u002Fcss-only-micro-interactions-animations\u002Fdialog-and-popover-animations\u002Fanimating-dialog-open-and-close","Animating \u003Cdialog> Open and Close: Both Directions, No Library",{"path":1196,"title":1197},"\u002Fcss-only-micro-interactions-animations\u002Fdialog-and-popover-animations\u002Fbackdrop-animations","Animating ::backdrop: Fades and Blurs Behind Dialogs and Popovers",{"path":1199,"title":1200},"\u002Fcss-only-micro-interactions-animations\u002Fdialog-and-popover-animations","Dialog & Popover Animations: Motion for the Top Layer",{"path":1202,"title":1203},"\u002Fcss-only-micro-interactions-animations\u002Fdialog-and-popover-animations\u002Finterpolate-size-for-height-auto-animation","Animating to height: auto With interpolate-size and calc-size()",{"path":1205,"title":1206},"\u002Fcss-only-micro-interactions-animations\u002Fdialog-and-popover-animations\u002Fpopover-entry-and-exit-transitions","Popover Menus That Animate From Their Anchor",{"path":1208,"title":1209},"\u002Fcss-only-micro-interactions-animations\u002Feasing-and-motion-design\u002Fchoosing-animation-durations","Choosing Animation Durations: How Long Motion Should Last",{"path":1211,"title":1212},"\u002Fcss-only-micro-interactions-animations\u002Feasing-and-motion-design\u002Fcubic-bezier-overshoot-and-anticipation","Overshoot and Anticipation With cubic-bezier(): Motion With Character",{"path":1214,"title":1215},"\u002Fcss-only-micro-interactions-animations\u002Feasing-and-motion-design\u002Fentry-vs-exit-easing","Entry vs Exit Easing: Different Curves for Arriving and Leaving",{"path":1217,"title":1218},"\u002Fcss-only-micro-interactions-animations\u002Feasing-and-motion-design","Easing & Motion Design: Making CSS Motion Feel Intentional",{"path":1220,"title":1221},"\u002Fcss-only-micro-interactions-animations\u002Feasing-and-motion-design\u002Flinear-easing-function-for-springs","Spring and Bounce Easing With linear(): Physical Motion Without JavaScript",{"path":1223,"title":1224},"\u002Fcss-only-micro-interactions-animations\u002Feasing-and-motion-design\u002Fsteps-easing-for-sprite-animations","steps() Easing: Sprite Sheets, Typewriters and Other Frame-by-Frame Effects",{"path":1226,"title":1227},"\u002Fcss-only-micro-interactions-animations\u002Fhover-focus-state-design\u002Faccessible-css-only-tooltips","Accessible CSS-Only Tooltips and Hover Cards With  and ",{"path":1229,"title":1230},"\u002Fcss-only-micro-interactions-animations\u002Fhover-focus-state-design\u002Fbutton-press-and-active-states","Button Press and  States",{"path":1232,"title":1233},"\u002Fcss-only-micro-interactions-animations\u002Fhover-focus-state-design\u002Ffocus-visible-vs-focus-polyfill-alternatives"," vs :focus: Why It Replaced the Focus-Ring Polyfill",{"path":1235,"title":1236},"\u002Fcss-only-micro-interactions-animations\u002Fhover-focus-state-design\u002Ffocus-within-form-patterns"," Form Patterns: Styling a Group From the Field Inside It",{"path":1238,"title":1239},"\u002Fcss-only-micro-interactions-animations\u002Fhover-focus-state-design\u002Fhover-intent-delays-with-transition-delay","Hover Intent Delays With transition-delay: Menus That Don't Flicker",{"path":1241,"title":1242},"\u002Fcss-only-micro-interactions-animations\u002Fhover-focus-state-design","Hover & Focus State Design: Spec-Compliant Patterns for Modern UIs",{"path":1244,"title":1245},"\u002Fcss-only-micro-interactions-animations\u002Fhover-focus-state-design\u002Fpointer-and-hover-media-queries","Pointer and Hover Media Queries: Gating Affordances by Input Capability",{"path":1247,"title":1248},"\u002Fcss-only-micro-interactions-animations\u002Fhover-focus-state-design\u002Fsmooth-hover-effects-without-javascript","Smooth Hover Effects Without JavaScript: CSS-Only Patterns for Modern UI",{"path":1250,"title":1251},"\u002Fcss-only-micro-interactions-animations","CSS-Only Micro-Interactions & Animations: Architecture, Performance & Implementation",{"path":1253,"title":1254},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns\u002Fanimation-composition-and-stacking","Stacking Animations With animation-composition",{"path":1256,"title":1257},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns\u002Fanimation-fill-mode-explained","animation-fill-mode: What an Animation Applies Before and After It Runs",{"path":1259,"title":1260},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns\u002Fcontainer-query-triggered-keyframe-animations","Container-Query-Triggered Keyframe Animations: Animate Differently per Available Space",{"path":1262,"title":1263},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns\u002Fcss-only-accordions-and-disclosure","CSS-Only Accordions and Disclosure Widgets with details and summary",{"path":1265,"title":1266},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns\u002Fcss-only-loading-spinners-and-skeletons","CSS-Only Loading Spinners and Skeleton Shimmer Screens with @keyframes",{"path":1268,"title":1269},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns\u002Fcss-only-toggle-switches-and-checkboxes","CSS-Only Toggle Switches and Checkboxes That Keep the Native Input",{"path":1271,"title":1272},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns","Keyframe Animation Patterns: Spec-Compliant Architectures for Modern UIs",{"path":1274,"title":1275},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns\u002Fmulti-step-keyframes-and-per-keyframe-easing","Multi-Step Keyframes and Per-Keyframe Easing",{"path":1277,"title":1278},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns\u002Fstaggered-list-animations-with-custom-properties","Staggered List Animations Using --i Index Custom Properties",{"path":1280,"title":1281},"\u002Fcss-only-micro-interactions-animations\u002Fperformance-gpu-acceleration\u002Fanimating-box-shadow-and-filters-cheaply","Animating box-shadow and Filters Cheaply",{"path":1283,"title":1284},"\u002Fcss-only-micro-interactions-animations\u002Fperformance-gpu-acceleration\u002Fcontain-property-for-animation-performance","The contain Property for Animation Performance",{"path":1286,"title":1287},"\u002Fcss-only-micro-interactions-animations\u002Fperformance-gpu-acceleration\u002Fcss-triggers-layout-paint-composite","Layout, Paint and Composite: What Triggers What",{"path":1289,"title":1290},"\u002Fcss-only-micro-interactions-animations\u002Fperformance-gpu-acceleration","Performance & GPU Acceleration in CSS: A Developer’s Blueprint",{"path":1292,"title":1293},"\u002Fcss-only-micro-interactions-animations\u002Fperformance-gpu-acceleration\u002Foptimizing-css-animations-for-60fps","Optimizing CSS Animations for 60fps: Budgeting the Frame",{"path":1295,"title":1296},"\u002Fcss-only-micro-interactions-animations\u002Fperformance-gpu-acceleration\u002Fprofiling-animations-in-devtools","Profiling CSS Animations in DevTools: Finding the Frame That Costs Too Much",{"path":1298,"title":1299},"\u002Fcss-only-micro-interactions-animations\u002Fperformance-gpu-acceleration\u002Fwill-change-and-the-compositor-thread","will-change and the Compositor Thread: Layer Promotion Without the Footguns",{"path":1301,"title":1302},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations","Scroll-Driven Animations: Binding Motion to Scroll Position in Pure CSS",{"path":1304,"title":1305},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations\u002Fscroll-driven-animation-fallbacks","Shipping Scroll-Driven Animations Without Breaking Anything",{"path":1307,"title":1308},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations\u002Fscroll-driven-parallax-effects","Scroll-Driven Parallax Effects in CSS",{"path":1310,"title":1311},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations\u002Fscroll-progress-bar-without-javascript","A Reading Progress Bar Driven by scroll(root)",{"path":1313,"title":1314},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations\u002Fscroll-triggered-reveal-animations","Reveal-on-Scroll with view() and animation-range",{"path":1316,"title":1317},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations\u002Ftimeline-scope-for-cross-element-animations","timeline-scope for Cross-Element Animations",{"path":1319,"title":1320},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations\u002Fview-timeline-and-animation-range","View Timelines and animation-range",{"path":1322,"title":1323},"\u002Fcss-only-micro-interactions-animations\u002Fview-transitions-for-css-developers\u002Fcross-document-view-transitions","Cross-Document View Transitions",{"path":1325,"title":1326},"\u002Fcss-only-micro-interactions-animations\u002Fview-transitions-for-css-developers","View Transitions for CSS Developers: the Pseudo-Element Tree, Snapshots, and Named Elements",{"path":1328,"title":1329},"\u002Fcss-only-micro-interactions-animations\u002Fview-transitions-for-css-developers\u002Fsame-document-view-transitions","Writing a Same-Document View Transition: the CSS You Actually Author",{"path":1331,"title":1332},"\u002Fcss-only-micro-interactions-animations\u002Fview-transitions-for-css-developers\u002Fview-transition-names-shared-elements","view-transition-name and Shared Elements: Morphing a Thumbnail into a Hero",{"path":1334,"title":1335},"\u002Fcss-only-micro-interactions-animations\u002Fview-transitions-for-css-developers\u002Fview-transition-types-and-classes","View Transition Types and Classes",{"path":1337,"title":1338},"\u002Fcss-only-micro-interactions-animations\u002Fview-transitions-for-css-developers\u002Fview-transitions-for-list-reordering","View Transitions for List Reordering",{"path":1340,"title":1341},"\u002Fcss-only-micro-interactions-animations\u002Fview-transitions-for-css-developers\u002Fview-transitions-with-reduced-motion","Honouring prefers-reduced-motion in View Transitions",{"path":1343,"title":1344},"\u002F","Modern CSS Layouts & Micro-Interactions",{"path":1346,"title":1347},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays\u002Fanchor-positioned-tooltips","Anchor-Positioned Tooltips: Tethering, Flipping, and Getting the Semantics Right",{"path":1349,"title":1350},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays\u002Fanchor-positioning-fallbacks","Anchor Positioning Fallbacks: A Graceful Floor for Older Browser Versions",{"path":1352,"title":1353},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays\u002Fanchor-size-for-matching-widths","anchor-size(): Overlays That Match Their Trigger's Size",{"path":1355,"title":1356},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays","CSS Anchor Positioning and Overlays: Tethering Elements Without JavaScript",{"path":1358,"title":1359},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays\u002Fpopover-attribute-and-css-styling","The popover Attribute: Top-Layer Overlays With No JavaScript",{"path":1361,"title":1362},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays\u002Fpopover-light-dismiss-and-stacking","Popover Light Dismiss, Nesting and Stacking",{"path":1364,"title":1365},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays\u002Fposition-area-grid-explained","position-area: The Anchor Placement Grid",{"path":1367,"title":1368},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks\u002Fcontainer-query-polyfill-tradeoffs","Container Query Polyfills: What They Cost and When to Skip Them",{"path":1370,"title":1371},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks\u002Ffeature-detection-with-supports","Feature Detection with @supports: Syntax, Semantics, and the Traps",{"path":1373,"title":1374},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks\u002Fhandling-container-query-fallbacks-for-older-browsers","Handling Container Query Fallbacks for Older Browsers",{"path":1376,"title":1377},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks","Container Query Fallbacks: Spec-Compliant CSS Strategies for Legacy Browsers",{"path":1379,"title":1380},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks\u002Fintrinsic-layout-fallbacks-without-queries","Intrinsic Layout Fallbacks: Baselines That Adapt Without Any Query",{"path":1382,"title":1383},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks\u002Ftesting-fallbacks-without-old-browsers","Testing CSS Fallbacks Without an Old Browser",{"path":1385,"title":1386},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-syntax-basics\u002Fcontainer-queries-inside-css-nesting","Container Queries Inside CSS Nesting: Keeping Responses Next to the Styles They Change",{"path":1388,"title":1389},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-syntax-basics\u002Fcontainer-query-range-and-logic-operators","Container Query Range Syntax and Logic Operators",{"path":1391,"title":1392},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-syntax-basics\u002Fcontainer-query-units-cqi-cqb-explained","Container Query Units Explained: cqi, cqb, cqw, cqh, cqmin and cqmax",{"path":1394,"title":1395},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-syntax-basics\u002Fcontainer-type-size-vs-inline-size","Choosing container-type: inline-size, size, or normal",{"path":1397,"title":1398},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-syntax-basics\u002Fcontainer-vs-media-queries-comparison","Container vs Media Queries: Choosing the Right Reference Box",{"path":1400,"title":1401},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-syntax-basics\u002Fdebugging-container-queries-in-devtools","Debugging Container Queries in DevTools: Why a Rule Doesn't Match",{"path":1403,"title":1404},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-syntax-basics\u002Fhow-to-use-container-queries-in-production","How to Use Container Queries in Production Without a Rewrite",{"path":1406,"title":1407},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-syntax-basics","Container Query Syntax Basics",{"path":1409,"title":1410},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-syntax-basics\u002Fnesting-and-naming-container-queries","Nesting and Naming Container Queries: Targeting the Right Ancestor",{"path":1412,"title":1413},"\u002Fmastering-container-queries-responsive-layouts\u002Fcss-grid-and-subgrid-layouts\u002Fauto-fit-minmax-responsive-grids","Responsive Grids with repeat(auto-fit, minmax())",{"path":1415,"title":1416},"\u002Fmastering-container-queries-responsive-layouts\u002Fcss-grid-and-subgrid-layouts\u002Fbuilding-a-dashboard-with-subgrid","Building a Responsive Dashboard Where Cards Align with Subgrid",{"path":1418,"title":1419},"\u002Fmastering-container-queries-responsive-layouts\u002Fcss-grid-and-subgrid-layouts\u002Fgrid-auto-flow-dense-packing","grid-auto-flow: dense for Packed Layouts",{"path":1421,"title":1422},"\u002Fmastering-container-queries-responsive-layouts\u002Fcss-grid-and-subgrid-layouts\u002Fgrid-template-areas-responsive-layouts","Responsive Layouts With grid-template-areas: Rearranging Regions by Name",{"path":1424,"title":1425},"\u002Fmastering-container-queries-responsive-layouts\u002Fcss-grid-and-subgrid-layouts\u002Fholy-grail-layout-with-grid","The Holy-Grail Layout with CSS Grid and Container Queries",{"path":1427,"title":1428},"\u002Fmastering-container-queries-responsive-layouts\u002Fcss-grid-and-subgrid-layouts","CSS Grid and Subgrid Layouts for Responsive Interfaces",{"path":1430,"title":1431},"\u002Fmastering-container-queries-responsive-layouts\u002Fcss-grid-and-subgrid-layouts\u002Fmasonry-style-layouts-with-grid","Masonry-Style Layouts With the CSS That Ships Today",{"path":1433,"title":1434},"\u002Fmastering-container-queries-responsive-layouts\u002Fcss-grid-and-subgrid-layouts\u002Foverlapping-elements-with-grid-stacking","Overlapping Elements With Grid Stacking: Layers Without position: absolute",{"path":1436,"title":1437},"\u002Fmastering-container-queries-responsive-layouts\u002Fcss-grid-and-subgrid-layouts\u002Fsubgrid-vs-nested-grid","Subgrid vs an Independently Nested Grid",{"path":1439,"title":1440},"\u002Fmastering-container-queries-responsive-layouts\u002Fflexbox-layout-patterns\u002Fcentering-in-css-every-method","Centering in CSS: Every Modern Method and When Each One Breaks",{"path":1442,"title":1443},"\u002Fmastering-container-queries-responsive-layouts\u002Fflexbox-layout-patterns\u002Fflex-basis-vs-width","flex-basis vs width: Which Size a Flex Item Actually Starts From",{"path":1445,"title":1446},"\u002Fmastering-container-queries-responsive-layouts\u002Fflexbox-layout-patterns\u002Fflex-grow-and-flex-shrink-explained","flex-grow and flex-shrink Explained",{"path":1448,"title":1449},"\u002Fmastering-container-queries-responsive-layouts\u002Fflexbox-layout-patterns\u002Fflex-wrap-intrinsic-responsive-rows","Breakpoint-Free Responsive Rows With flex-wrap and flex-basis",{"path":1451,"title":1452},"\u002Fmastering-container-queries-responsive-layouts\u002Fflexbox-layout-patterns\u002Fflexbox-gap-and-spacing","Flexbox gap vs Margins: Spacing Items Without Edge Hacks",{"path":1454,"title":1455},"\u002Fmastering-container-queries-responsive-layouts\u002Fflexbox-layout-patterns","Flexbox Layout Patterns: One-Dimensional Layout for Real Components",{"path":1457,"title":1458},"\u002Fmastering-container-queries-responsive-layouts\u002Fflexbox-layout-patterns\u002Fsticky-footer-with-flexbox-and-grid","Sticky Footer With Flexbox or Grid: Pinning the Footer on Short Pages",{"path":1460,"title":1461},"\u002Fmastering-container-queries-responsive-layouts\u002Ffluid-typography-with-clamp\u002Fclamp-vs-media-query-typography","clamp() Fluid Type vs Media-Query Step Typography: Tradeoffs and Anatomy",{"path":1463,"title":1464},"\u002Fmastering-container-queries-responsive-layouts\u002Ffluid-typography-with-clamp\u002Fdebugging-clamp-values","Debugging clamp(): Values That Are Ignored, Stuck or Never Fluid",{"path":1466,"title":1467},"\u002Fmastering-container-queries-responsive-layouts\u002Ffluid-typography-with-clamp\u002Ffluid-line-height-and-measure","Fluid Line Height and Measure: Keeping Text Readable as It Scales",{"path":1469,"title":1470},"\u002Fmastering-container-queries-responsive-layouts\u002Ffluid-typography-with-clamp\u002Ffluid-space-scale-with-clamp","Building a Fluid Spacing Scale with clamp() and Container Units",{"path":1472,"title":1473},"\u002Fmastering-container-queries-responsive-layouts\u002Ffluid-typography-with-clamp\u002Ffluid-type-accessibility-and-zoom","Fluid Type, Accessibility and Zoom: The vw-Only Trap",{"path":1475,"title":1476},"\u002Fmastering-container-queries-responsive-layouts\u002Ffluid-typography-with-clamp\u002Ffluid-typography-without-javascript","Fluid Typography Without JavaScript: A Precision CSS Reference",{"path":1478,"title":1479},"\u002Fmastering-container-queries-responsive-layouts\u002Ffluid-typography-with-clamp","Fluid Typography with clamp(): A Practical Guide for Modern CSS",{"path":1481,"title":1482},"\u002Fmastering-container-queries-responsive-layouts\u002Ffluid-typography-with-clamp\u002Ftext-wrap-balance-and-pretty","text-wrap: balance and pretty: Better Line Breaks Without Manual Breaks",{"path":1484,"title":1485},"\u002Fmastering-container-queries-responsive-layouts","Mastering Container Queries & Responsive Layouts",{"path":1487,"title":1488},"\u002Fmastering-container-queries-responsive-layouts\u002Fintrinsic-sizing-techniques\u002Faspect-ratio-for-responsive-media","Using aspect-ratio for Responsive Media and Preventing Layout Shift",{"path":1490,"title":1491},"\u002Fmastering-container-queries-responsive-layouts\u002Fintrinsic-sizing-techniques\u002Fcontent-visibility-and-contain-intrinsic-size","content-visibility and contain-intrinsic-size: Rendering Only What Is Near the Screen",{"path":1493,"title":1494},"\u002Fmastering-container-queries-responsive-layouts\u002Fintrinsic-sizing-techniques","Intrinsic Sizing Techniques: Modern CSS Layouts for Responsive UI",{"path":1496,"title":1497},"\u002Fmastering-container-queries-responsive-layouts\u002Fintrinsic-sizing-techniques\u002Flayout-widths-with-min-max-clamp","Layout Widths With min(), max() and clamp(): Sizing Without Breakpoints",{"path":1499,"title":1500},"\u002Fmastering-container-queries-responsive-layouts\u002Fintrinsic-sizing-techniques\u002Fmin-max-fit-content-explained","min-content, max-content, and fit-content() Explained",{"path":1502,"title":1503},"\u002Fmastering-container-queries-responsive-layouts\u002Fintrinsic-sizing-techniques\u002Fobject-fit-and-object-position","object-fit and object-position: Images That Fit Any Box",{"path":1505,"title":1506},"\u002Fmastering-container-queries-responsive-layouts\u002Fintrinsic-sizing-techniques\u002Fpreventing-flex-and-grid-overflow","The min-width: auto Trap in Flex and Grid Layouts",{"path":1508,"title":1509},"\u002Fmastering-container-queries-responsive-layouts\u002Fmodern-css-reset-strategies\u002Fcascade-layers-for-reset-and-tokens","Cascade Layers for Reset and Design Tokens",{"path":1511,"title":1512},"\u002Fmastering-container-queries-responsive-layouts\u002Fmodern-css-reset-strategies\u002Fcascade-layers-vs-specificity-hacks","Cascade Layers vs Specificity Hacks: Ordering Instead of Escalating",{"path":1514,"title":1515},"\u002Fmastering-container-queries-responsive-layouts\u002Fmodern-css-reset-strategies\u002Fcss-scope-for-component-styles","@scope for Component Styles: Short Selectors That Cannot Leak",{"path":1517,"title":1518},"\u002Fmastering-container-queries-responsive-layouts\u002Fmodern-css-reset-strategies","Modern CSS Reset Strategies: A Spec-Compliant Foundation",{"path":1520,"title":1521},"\u002Fmastering-container-queries-responsive-layouts\u002Fmodern-css-reset-strategies\u002Frevert-layer-and-revert-keywords","initial, inherit, unset, revert and revert-layer: Undoing Styles Correctly",{"path":1523,"title":1524},"\u002Fmastering-container-queries-responsive-layouts\u002Fmodern-css-reset-strategies\u002Fwriting-a-minimal-modern-reset","Writing a Minimal Modern CSS Reset: Every Line Justified",{"path":1526,"title":1527},"\u002Fmastering-container-queries-responsive-layouts\u002Fparent-aware-layouts-with-has\u002Fcontent-aware-card-layouts-with-has","Content-Aware Card Layouts With :has(): One Component, Many Shapes",{"path":1529,"title":1530},"\u002Fmastering-container-queries-responsive-layouts\u002Fparent-aware-layouts-with-has\u002Fempty-and-loading-states-with-has","Empty and Loading States With ()",{"path":1532,"title":1533},"\u002Fmastering-container-queries-responsive-layouts\u002Fparent-aware-layouts-with-has\u002Fform-validation-layouts-with-has","Form Validation Layouts With :has(): Styling Groups From Field State",{"path":1535,"title":1536},"\u002Fmastering-container-queries-responsive-layouts\u002Fparent-aware-layouts-with-has\u002Fhas-selector-performance",":has() Selector Performance: What Is Cheap, What Is Not, and How to Measure",{"path":1538,"title":1539},"\u002Fmastering-container-queries-responsive-layouts\u002Fparent-aware-layouts-with-has\u002Fhas-vs-container-style-queries",":has() vs Container Style Queries: Discovered State and Published State",{"path":1541,"title":1542},"\u002Fmastering-container-queries-responsive-layouts\u002Fparent-aware-layouts-with-has","Parent-Aware Layouts With :has(): Letting Containers React to Their Contents",{"path":1544,"title":1545},"\u002Fmastering-container-queries-responsive-layouts\u002Fparent-aware-layouts-with-has\u002Fquantity-queries-with-has","Quantity Queries With :has(): Layouts That Respond to How Many Items There Are",{"path":1547,"title":1548},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Fbuilding-responsive-cards-with-container-queries","Building Responsive Cards with Container Queries: A Production-Ready Guide",{"path":1550,"title":1551},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Fcontainer-query-data-tables","Container Query Data Tables: Reflowing Tables to Cards",{"path":1553,"title":1554},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Fcontainer-query-sidebar-layouts","Container Query Sidebar Layouts That Travel Between Contexts",{"path":1556,"title":1557},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns","Responsive Component Patterns: Architecture & Implementation",{"path":1559,"title":1560},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Fresponsive-forms-with-container-queries","Responsive Forms with Container Queries: Reflow Without Losing the Wiring",{"path":1562,"title":1563},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Fresponsive-hero-sections-with-container-queries","Responsive Hero Sections With Container Queries",{"path":1565,"title":1566},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Fresponsive-navigation-without-media-queries","Responsive Navigation Without Media Queries Using Container Queries",{"path":1568,"title":1569},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Fresponsive-pricing-tables","Responsive Pricing Tables: Aligned Features, a Clear Recommendation, Any Width",{"path":1571,"title":1572},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Ftabs-that-become-accordions","Tabs That Become an Accordion: One Component, Two Layouts",{"path":1574,"title":1575},"\u002Fmastering-container-queries-responsive-layouts\u002Fscroll-snap-and-overflow-layouts\u002Fcss-only-carousel-with-scroll-snap","A CSS-Only Carousel With Scroll Snap",{"path":1577,"title":1578},"\u002Fmastering-container-queries-responsive-layouts\u002Fscroll-snap-and-overflow-layouts\u002Fhorizontal-scrolling-card-rows","Horizontal Scrolling Card Rows: Swipeable Lists That Stay in Their Lane",{"path":1580,"title":1581},"\u002Fmastering-container-queries-responsive-layouts\u002Fscroll-snap-and-overflow-layouts","Scroll Snap & Overflow Layouts: Designing Components That Scroll on Purpose",{"path":1583,"title":1584},"\u002Fmastering-container-queries-responsive-layouts\u002Fscroll-snap-and-overflow-layouts\u002Foverscroll-behavior-for-nested-scrolling","overscroll-behavior: Taming Nested Scrolling, Pull-to-Refresh and Back-Swipe",{"path":1586,"title":1587},"\u002Fmastering-container-queries-responsive-layouts\u002Fscroll-snap-and-overflow-layouts\u002Fscroll-margin-and-scroll-padding-for-sticky-headers","scroll-margin and scroll-padding: Keeping Targets Clear of Sticky Headers",{"path":1589,"title":1590},"\u002Fmastering-container-queries-responsive-layouts\u002Fstyle-queries-and-container-state\u002Fcombining-size-and-style-queries","Combining Size and Style Container Queries",{"path":1592,"title":1593},"\u002Fmastering-container-queries-responsive-layouts\u002Fstyle-queries-and-container-state\u002Fcontainer-style-query-theming","Container Style Query Theming: One Token Instead of a Variant Class Matrix",{"path":1595,"title":1596},"\u002Fmastering-container-queries-responsive-layouts\u002Fstyle-queries-and-container-state","Style Queries and Container State: Token-Driven Component Variants",{"path":1598,"title":1599},"\u002Fmastering-container-queries-responsive-layouts\u002Fstyle-queries-and-container-state\u002Fstyle-queries-with-custom-properties","Style Queries With Custom Properties: Declaring, Inheriting, and Matching Tokens",{"path":1601,"title":1602},"\u002Fmastering-container-queries-responsive-layouts\u002Fstyle-queries-and-container-state\u002Fstyle-query-component-variants","Component Variants With Style Queries: One Token, Many Looks",{"path":1604,"title":1605},"\u002Fmastering-container-queries-responsive-layouts\u002Fstyle-queries-and-container-state\u002Fstyle-query-fallbacks-and-support","Style Query Fallbacks and Support: Designing for Older Browser Versions",{"path":1607,"title":1608},"\u002Fmastering-container-queries-responsive-layouts\u002Fviewport-units-and-mobile-layout\u002Fdvh-svh-lvh-mobile-viewport-units","dvh, svh and lvh: Choosing the Right Mobile Viewport Unit",{"path":1610,"title":1611},"\u002Fmastering-container-queries-responsive-layouts\u002Fviewport-units-and-mobile-layout\u002Ffull-bleed-sections-in-constrained-layouts","Full-Bleed Sections in a Constrained Layout: Breaking Out Without Breaking the Page",{"path":1613,"title":1614},"\u002Fmastering-container-queries-responsive-layouts\u002Fviewport-units-and-mobile-layout","Viewport Units & Mobile Layout: Designing for the Screen You Actually Get",{"path":1616,"title":1617},"\u002Fmastering-container-queries-responsive-layouts\u002Fviewport-units-and-mobile-layout\u002Fsafe-area-insets-for-notched-screens","Safe Area Insets: Designing Around Notches, Corners and Home Indicators",{"path":1619,"title":1620},"\u002Fmastering-container-queries-responsive-layouts\u002Fviewport-units-and-mobile-layout\u002Fviewport-units-vs-container-units","Viewport Units vs Container Units: Choosing the Right Reference Box",{"path":1622,"title":1623},"\u002Fmastering-container-queries-responsive-layouts\u002Fviewport-units-and-mobile-layout\u002Fvirtual-keyboard-and-interactive-widget","Layouts That Survive the Virtual Keyboard",{"title":1625,"caption":1626,"height":1627,"resizable":209,"html":1628,"css":1629},"Transitions around a container breakpoint","Drag the frame narrower and wider across about 28rem. The layout switches instantly; padding, radius, gap, heading size and border colour glide.",300,"\n\u003Cdiv class=\"card-wrap\">\n  \u003Carticle class=\"card\">\n    \u003Cdiv class=\"media\" aria-hidden=\"true\">\u003C\u002Fdiv>\n    \u003Cdiv>\n      \u003Ch3>Trail notes\u003C\u002Fh3>\n      \u003Cp>A short summary that reflows as the card changes layout.\u003C\u002Fp>\n    \u003C\u002Fdiv>\n  \u003C\u002Farticle>\n\u003C\u002Fdiv>","\n.card-wrap { container-type: inline-size; padding: 1rem; }\n.card { display: grid; gap: 0.75rem; padding: 0.75rem; border-radius: 8px; border: 1px solid var(--demo-border); background: var(--demo-surface); transition: padding 200ms ease-out, border-radius 200ms ease-out, gap 200ms ease-out, border-color 200ms ease-out; }\n.media { aspect-ratio: 16 \u002F 9; border-radius: 6px; background: linear-gradient(135deg, #1e3a8a, #0ea5e9); }\n.card h3 { margin: 0 0 0.25rem; font-size: 1.1rem; transition: font-size 200ms ease-out; }\n.card p { margin: 0; color: var(--demo-muted); }\n@container (inline-size > 28rem) {\n  .card { grid-template-columns: 10rem 1fr; align-items: start; gap: 1.25rem; padding: 1.5rem; border-radius: 16px; border-color: var(--demo-accent); }\n  .card h3 { font-size: 1.4rem; }\n}\n@media (prefers-reduced-motion: reduce) { .card, .card h3 { transition: none; } }",1789717749389]