[{"data":1,"prerenderedAt":2034},["ShallowReactive",2],{"page-\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Ftransition-shorthand-and-multiple-properties":3,"content-all-pages":1469,"live-demo:transition-multi":2028},{"id":4,"title":5,"body":6,"description":1450,"extension":1451,"meta":1452,"navigation":408,"path":1465,"seo":1466,"stem":1467,"__hash__":1468},"content\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Ftransition-shorthand-and-multiple-properties\u002Findex.md","The transition Shorthand and Multiple Properties",{"type":7,"value":8,"toc":1439},"minimark",[9,19,42,47,69,77,182,186,189,193,1105,1111,1115,1129,1190,1207,1211,1214,1223,1229,1235,1241,1263,1272,1279,1285,1326,1341,1345,1356,1360,1368,1381,1396,1404,1408,1436],[10,11,13,14,18],"h1",{"id":12},"the-transition-shorthand-and-multiple-properties","The ",[15,16,17],"code",{},"transition"," Shorthand and Multiple Properties",[20,21,22,23,26,27,30,31,36,37,41],"p",{},"A single-property transition is easy: ",[15,24,25],{},"transition: opacity 200ms ease",". Real components change several properties at once — a button's colour, shadow and position; a card's scale, border and opacity — and each usually wants its own timing. The shorthand supports that with comma-separated lists, but the list semantics produce a family of bugs: transitions that vanish in the hover state, the wrong curve applied to the wrong property, ",[15,28,29],{},"transition: all"," animating a layout change nobody asked for. This page explains how multi-property transitions are actually parsed and combined, and gives patterns that stay correct as a component grows. It belongs to ",[32,33,35],"a",{"href":34},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002F","CSS Transition Fundamentals"," in the ",[32,38,40],{"href":39},"\u002Fcss-only-micro-interactions-animations\u002F","CSS-Only Micro-Interactions & Animations"," guide.",[43,44,46],"h2",{"id":45},"why-multi-property-transitions-go-wrong","Why multi-property transitions go wrong",[20,48,13,49,51,52,55,56,55,59,55,62,55,65,68],{},[15,50,17],{}," shorthand is a list. Each comma-separated item describes one transition: a property, a duration, a timing function, a delay and a behaviour. Behind the shorthand sit five longhands, each also a list — ",[15,53,54],{},"transition-property",", ",[15,57,58],{},"transition-duration",[15,60,61],{},"transition-timing-function",[15,63,64],{},"transition-delay",[15,66,67],{},"transition-behavior"," — and the browser pairs their entries by position.",[20,70,71,72,76],{},"Two consequences follow. Declaring the shorthand anywhere replaces ",[73,74,75],"em",{},"all five lists at once",", so a later rule that declares a single transition silently drops the others. And declaring longhands separately means their lists must line up by index, or durations and curves end up attached to the wrong properties.",[78,79,85,86,85,90,85,94,85,102,85,109,85,113,85,117,85,121,85,130,85,134,85,137,85,142,85,146,85,150,85,153,85,156,85,158,85,161,85,164,85,166,85,169,85,171,85,173,85,178],"svg",{"viewBox":80,"role":81,"ariaLabel":82,"xmlns":83,"style":84},"0 0 720 300","img","The transition shorthand expanding into five parallel longhand lists, paired by index into three transitions","http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg","width:100%;height:auto;max-width:720px;margin:2rem 0","\n  ",[87,88,89],"title",{},"One shorthand, five aligned lists",[91,92,93],"desc",{},"The shorthand transition: opacity 150ms ease, transform 300ms ease-out, box-shadow 300ms ease expands to transition-property, duration, timing-function and delay lists of three entries each, paired column by column into three transitions.",[95,96,101],"text",{"textAnchor":97,"x":98,"y":99,"style":100},"middle","360","26","text-anchor:middle;fill:currentColor;font:700 17px sans-serif","Entries are paired by position",[95,103,108],{"textAnchor":104,"x":105,"y":106,"style":107},"end","140","70","text-anchor:end;fill:currentColor;font:12px ui-monospace,monospace","property",[95,110,112],{"textAnchor":104,"x":105,"y":111,"style":107},"112","duration",[95,114,116],{"textAnchor":104,"x":105,"y":115,"style":107},"154","timing",[95,118,120],{"textAnchor":104,"x":105,"y":119,"style":107},"196","delay",[122,123],"rect",{"x":124,"y":125,"width":124,"height":126,"rx":127,"fill":128,"opacity":129},"160","48","164","8","#7aa2ff","0.18",[122,131],{"x":132,"y":125,"width":124,"height":126,"rx":127,"fill":128,"opacity":133},"340","0.28",[122,135],{"x":136,"y":125,"width":124,"height":126,"rx":127,"fill":128,"opacity":129},"520",[95,138,141],{"textAnchor":97,"x":139,"y":106,"style":140},"240","text-anchor:middle;fill:currentColor;font:12px ui-monospace,monospace","opacity",[95,143,145],{"textAnchor":97,"x":144,"y":106,"style":140},"420","transform",[95,147,149],{"textAnchor":97,"x":148,"y":106,"style":140},"600","box-shadow",[95,151,152],{"textAnchor":97,"x":139,"y":111,"style":140},"150ms",[95,154,155],{"textAnchor":97,"x":144,"y":111,"style":140},"300ms",[95,157,155],{"textAnchor":97,"x":148,"y":111,"style":140},[95,159,160],{"textAnchor":97,"x":139,"y":115,"style":140},"ease",[95,162,163],{"textAnchor":97,"x":144,"y":115,"style":140},"ease-out",[95,165,160],{"textAnchor":97,"x":148,"y":115,"style":140},[95,167,168],{"textAnchor":97,"x":139,"y":119,"style":140},"0s",[95,170,168],{"textAnchor":97,"x":144,"y":119,"style":140},[95,172,168],{"textAnchor":97,"x":148,"y":119,"style":140},[95,174,177],{"textAnchor":97,"x":98,"y":175,"style":176},"246","text-anchor:middle;fill:currentColor;font:12px sans-serif","Each column is one transition. The number of columns comes from transition-property.",[95,179,181],{"textAnchor":97,"x":98,"y":180,"style":176},"270","Shorter lists are repeated; longer lists are cut to fit.",[43,183,185],{"id":184},"the-complete-implementation","The complete implementation",[20,187,188],{},"The card below transitions four properties with individual timing. Tokens keep the durations consistent, and the hover rule changes only values, never the transition list.",[190,191],"live-demo",{"name":192},"transition-multi",[194,195,200],"pre",{"className":196,"code":197,"language":198,"meta":199,"style":199},"language-html shiki shiki-themes github-light-high-contrast github-dark-high-contrast","\u003C!doctype html>\n\u003Chtml lang=\"en\">\n\u003Chead>\n\u003Cmeta charset=\"utf-8\">\n\u003Cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n\u003Ctitle>Multi-property transitions\u003C\u002Ftitle>\n\u003Cstyle>\n  :root {\n    --fast: 150ms;\n    --base: 250ms;\n    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);\n  }\n\n  body { font: 15px\u002F1.5 system-ui, sans-serif; margin: 2rem; }\n\n  .card {\n    display: block;\n    max-width: 18rem;\n    padding: 1.25rem;\n    border: 1px solid #cbd5e1;\n    border-radius: 12px;\n    background: #ffffff;\n    color: inherit;\n    text-decoration: none;\n    box-shadow: 0 1px 2px rgb(15 23 42 \u002F 0.08);\n\n    \u002F* One list, one place. Each property gets timing that suits it:\n       colour changes quickly, movement and shadow a little slower. *\u002F\n    transition:\n      border-color var(--fast) ease,\n      background-color var(--fast) ease,\n      translate var(--base) var(--ease-out),\n      box-shadow var(--base) var(--ease-out);\n  }\n\n  \u002F* The hover and focus states change VALUES only. Because they do not\n     redeclare transition, the base list applies in both directions. *\u002F\n  .card:hover,\n  .card:focus-visible {\n    border-color: #6366f1;\n    background-color: #f8fafc;\n    translate: 0 -3px;\n    box-shadow: 0 12px 28px rgb(15 23 42 \u002F 0.14);\n  }\n  .card:focus-visible { outline: 2px solid #4338ca; outline-offset: 3px; }\n\n  @media (prefers-reduced-motion: reduce) {\n    \u002F* Change a longhand only: keep the list, drop movement time. *\u002F\n    .card { transition-duration: var(--fast), var(--fast), 1ms, 1ms; }\n    .card:hover, .card:focus-visible { translate: none; }\n  }\n\u003C\u002Fstyle>\n\u003C\u002Fhead>\n\u003Cbody>\n  \u003Ca class=\"card\" href=\"\u002Fguides\u002Fgrid\u002F\">\n    \u003Ch3>Grid guide\u003C\u002Fh3>\n    \u003Cp>Tracks, areas and subgrid in one place.\u003C\u002Fp>\n  \u003C\u002Fa>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n","html","",[15,201,202,222,242,252,270,295,309,319,328,348,363,397,403,410,461,466,474,487,502,517,537,552,565,578,591,633,638,645,651,660,682,700,725,747,752,757,763,769,777,785,798,811,828,864,869,904,909,918,924,965,987,992,1002,1011,1021,1047,1063,1077,1087,1096],{"__ignoreMap":199},[203,204,207,211,215,219],"span",{"class":205,"line":206},"line",1,[203,208,210],{"class":209},"suds8","\u003C!",[203,212,214],{"class":213},"sne4z","doctype",[203,216,218],{"class":217},"s-5SL"," html",[203,220,221],{"class":209},">\n",[203,223,225,228,230,233,236,240],{"class":205,"line":224},2,[203,226,227],{"class":209},"\u003C",[203,229,198],{"class":213},[203,231,232],{"class":217}," lang",[203,234,235],{"class":209},"=",[203,237,239],{"class":238},"sT6z2","\"en\"",[203,241,221],{"class":209},[203,243,245,247,250],{"class":205,"line":244},3,[203,246,227],{"class":209},[203,248,249],{"class":213},"head",[203,251,221],{"class":209},[203,253,255,257,260,263,265,268],{"class":205,"line":254},4,[203,256,227],{"class":209},[203,258,259],{"class":213},"meta",[203,261,262],{"class":217}," charset",[203,264,235],{"class":209},[203,266,267],{"class":238},"\"utf-8\"",[203,269,221],{"class":209},[203,271,273,275,277,280,282,285,288,290,293],{"class":205,"line":272},5,[203,274,227],{"class":209},[203,276,259],{"class":213},[203,278,279],{"class":217}," name",[203,281,235],{"class":209},[203,283,284],{"class":238},"\"viewport\"",[203,286,287],{"class":217}," content",[203,289,235],{"class":209},[203,291,292],{"class":238},"\"width=device-width, initial-scale=1\"",[203,294,221],{"class":209},[203,296,298,300,302,305,307],{"class":205,"line":297},6,[203,299,227],{"class":209},[203,301,87],{"class":213},[203,303,304],{"class":209},">Multi-property transitions\u003C\u002F",[203,306,87],{"class":213},[203,308,221],{"class":209},[203,310,312,314,317],{"class":205,"line":311},7,[203,313,227],{"class":209},[203,315,316],{"class":213},"style",[203,318,221],{"class":209},[203,320,322,325],{"class":205,"line":321},8,[203,323,324],{"class":217},"  :root",[203,326,327],{"class":209}," {\n",[203,329,331,335,338,341,345],{"class":205,"line":330},9,[203,332,334],{"class":333},"soyes","    --fast",[203,336,337],{"class":209},": ",[203,339,340],{"class":217},"150",[203,342,344],{"class":343},"sHUrx","ms",[203,346,347],{"class":209},";\n",[203,349,351,354,356,359,361],{"class":205,"line":350},10,[203,352,353],{"class":333},"    --base",[203,355,337],{"class":209},[203,357,358],{"class":217},"250",[203,360,344],{"class":343},[203,362,347],{"class":209},[203,364,366,369,371,374,377,380,382,385,387,390,392,394],{"class":205,"line":365},11,[203,367,368],{"class":333},"    --ease-out",[203,370,337],{"class":209},[203,372,373],{"class":217},"cubic-bezier",[203,375,376],{"class":209},"(",[203,378,379],{"class":217},"0.22",[203,381,55],{"class":209},[203,383,384],{"class":217},"1",[203,386,55],{"class":209},[203,388,389],{"class":217},"0.36",[203,391,55],{"class":209},[203,393,384],{"class":217},[203,395,396],{"class":209},");\n",[203,398,400],{"class":205,"line":399},12,[203,401,402],{"class":209},"  }\n",[203,404,406],{"class":205,"line":405},13,[203,407,409],{"emptyLinePlaceholder":408},true,"\n",[203,411,413,416,419,422,424,427,430,433,436,439,441,444,447,450,452,455,458],{"class":205,"line":412},14,[203,414,415],{"class":213},"  body",[203,417,418],{"class":209}," { ",[203,420,421],{"class":217},"font",[203,423,337],{"class":209},[203,425,426],{"class":217},"15",[203,428,429],{"class":343},"px",[203,431,432],{"class":209},"\u002F",[203,434,435],{"class":217},"1.5",[203,437,438],{"class":217}," system-ui",[203,440,55],{"class":209},[203,442,443],{"class":217},"sans-serif",[203,445,446],{"class":209},"; ",[203,448,449],{"class":217},"margin",[203,451,337],{"class":209},[203,453,454],{"class":217},"2",[203,456,457],{"class":343},"rem",[203,459,460],{"class":209},"; }\n",[203,462,464],{"class":205,"line":463},15,[203,465,409],{"emptyLinePlaceholder":408},[203,467,469,472],{"class":205,"line":468},16,[203,470,471],{"class":217},"  .card",[203,473,327],{"class":209},[203,475,477,480,482,485],{"class":205,"line":476},17,[203,478,479],{"class":217},"    display",[203,481,337],{"class":209},[203,483,484],{"class":217},"block",[203,486,347],{"class":209},[203,488,490,493,495,498,500],{"class":205,"line":489},18,[203,491,492],{"class":217},"    max-width",[203,494,337],{"class":209},[203,496,497],{"class":217},"18",[203,499,457],{"class":343},[203,501,347],{"class":209},[203,503,505,508,510,513,515],{"class":205,"line":504},19,[203,506,507],{"class":217},"    padding",[203,509,337],{"class":209},[203,511,512],{"class":217},"1.25",[203,514,457],{"class":343},[203,516,347],{"class":209},[203,518,520,523,525,527,529,532,535],{"class":205,"line":519},20,[203,521,522],{"class":217},"    border",[203,524,337],{"class":209},[203,526,384],{"class":217},[203,528,429],{"class":343},[203,530,531],{"class":217}," solid",[203,533,534],{"class":217}," #cbd5e1",[203,536,347],{"class":209},[203,538,540,543,545,548,550],{"class":205,"line":539},21,[203,541,542],{"class":217},"    border-radius",[203,544,337],{"class":209},[203,546,547],{"class":217},"12",[203,549,429],{"class":343},[203,551,347],{"class":209},[203,553,555,558,560,563],{"class":205,"line":554},22,[203,556,557],{"class":217},"    background",[203,559,337],{"class":209},[203,561,562],{"class":217},"#ffffff",[203,564,347],{"class":209},[203,566,568,571,573,576],{"class":205,"line":567},23,[203,569,570],{"class":217},"    color",[203,572,337],{"class":209},[203,574,575],{"class":217},"inherit",[203,577,347],{"class":209},[203,579,581,584,586,589],{"class":205,"line":580},24,[203,582,583],{"class":217},"    text-decoration",[203,585,337],{"class":209},[203,587,588],{"class":217},"none",[203,590,347],{"class":209},[203,592,594,597,599,602,605,607,610,612,615,617,619,622,625,628,631],{"class":205,"line":593},25,[203,595,596],{"class":217},"    box-shadow",[203,598,337],{"class":209},[203,600,601],{"class":217},"0",[203,603,604],{"class":217}," 1",[203,606,429],{"class":343},[203,608,609],{"class":217}," 2",[203,611,429],{"class":343},[203,613,614],{"class":217}," rgb",[203,616,376],{"class":209},[203,618,426],{"class":217},[203,620,621],{"class":217}," 23",[203,623,624],{"class":217}," 42",[203,626,627],{"class":209}," \u002F ",[203,629,630],{"class":217},"0.08",[203,632,396],{"class":209},[203,634,636],{"class":205,"line":635},26,[203,637,409],{"emptyLinePlaceholder":408},[203,639,641],{"class":205,"line":640},27,[203,642,644],{"class":643},"sLBg1","    \u002F* One list, one place. Each property gets timing that suits it:\n",[203,646,648],{"class":205,"line":647},28,[203,649,650],{"class":643},"       colour changes quickly, movement and shadow a little slower. *\u002F\n",[203,652,654,657],{"class":205,"line":653},29,[203,655,656],{"class":217},"    transition",[203,658,659],{"class":209},":\n",[203,661,663,666,669,671,674,677,679],{"class":205,"line":662},30,[203,664,665],{"class":209},"      border-color ",[203,667,668],{"class":217},"var",[203,670,376],{"class":209},[203,672,673],{"class":333},"--fast",[203,675,676],{"class":209},") ",[203,678,160],{"class":217},[203,680,681],{"class":209},",\n",[203,683,685,688,690,692,694,696,698],{"class":205,"line":684},31,[203,686,687],{"class":209},"      background-color ",[203,689,668],{"class":217},[203,691,376],{"class":209},[203,693,673],{"class":333},[203,695,676],{"class":209},[203,697,160],{"class":217},[203,699,681],{"class":209},[203,701,703,706,708,710,713,715,717,719,722],{"class":205,"line":702},32,[203,704,705],{"class":209},"      translate ",[203,707,668],{"class":217},[203,709,376],{"class":209},[203,711,712],{"class":333},"--base",[203,714,676],{"class":209},[203,716,668],{"class":217},[203,718,376],{"class":209},[203,720,721],{"class":333},"--ease-out",[203,723,724],{"class":209},"),\n",[203,726,728,731,733,735,737,739,741,743,745],{"class":205,"line":727},33,[203,729,730],{"class":209},"      box-shadow ",[203,732,668],{"class":217},[203,734,376],{"class":209},[203,736,712],{"class":333},[203,738,676],{"class":209},[203,740,668],{"class":217},[203,742,376],{"class":209},[203,744,721],{"class":333},[203,746,396],{"class":209},[203,748,750],{"class":205,"line":749},34,[203,751,402],{"class":209},[203,753,755],{"class":205,"line":754},35,[203,756,409],{"emptyLinePlaceholder":408},[203,758,760],{"class":205,"line":759},36,[203,761,762],{"class":643},"  \u002F* The hover and focus states change VALUES only. Because they do not\n",[203,764,766],{"class":205,"line":765},37,[203,767,768],{"class":643},"     redeclare transition, the base list applies in both directions. *\u002F\n",[203,770,772,775],{"class":205,"line":771},38,[203,773,774],{"class":217},"  .card:hover",[203,776,681],{"class":209},[203,778,780,783],{"class":205,"line":779},39,[203,781,782],{"class":217},"  .card:focus-visible",[203,784,327],{"class":209},[203,786,788,791,793,796],{"class":205,"line":787},40,[203,789,790],{"class":217},"    border-color",[203,792,337],{"class":209},[203,794,795],{"class":217},"#6366f1",[203,797,347],{"class":209},[203,799,801,804,806,809],{"class":205,"line":800},41,[203,802,803],{"class":217},"    background-color",[203,805,337],{"class":209},[203,807,808],{"class":217},"#f8fafc",[203,810,347],{"class":209},[203,812,814,817,819,821,824,826],{"class":205,"line":813},42,[203,815,816],{"class":217},"    translate",[203,818,337],{"class":209},[203,820,601],{"class":217},[203,822,823],{"class":217}," -3",[203,825,429],{"class":343},[203,827,347],{"class":209},[203,829,831,833,835,837,840,842,845,847,849,851,853,855,857,859,862],{"class":205,"line":830},43,[203,832,596],{"class":217},[203,834,337],{"class":209},[203,836,601],{"class":217},[203,838,839],{"class":217}," 12",[203,841,429],{"class":343},[203,843,844],{"class":217}," 28",[203,846,429],{"class":343},[203,848,614],{"class":217},[203,850,376],{"class":209},[203,852,426],{"class":217},[203,854,621],{"class":217},[203,856,624],{"class":217},[203,858,627],{"class":209},[203,860,861],{"class":217},"0.14",[203,863,396],{"class":209},[203,865,867],{"class":205,"line":866},44,[203,868,402],{"class":209},[203,870,872,874,876,879,881,883,885,887,890,892,895,897,900,902],{"class":205,"line":871},45,[203,873,782],{"class":217},[203,875,418],{"class":209},[203,877,878],{"class":217},"outline",[203,880,337],{"class":209},[203,882,454],{"class":217},[203,884,429],{"class":343},[203,886,531],{"class":217},[203,888,889],{"class":217}," #4338ca",[203,891,446],{"class":209},[203,893,894],{"class":217},"outline-offset",[203,896,337],{"class":209},[203,898,899],{"class":217},"3",[203,901,429],{"class":343},[203,903,460],{"class":209},[203,905,907],{"class":205,"line":906},46,[203,908,409],{"emptyLinePlaceholder":408},[203,910,912,915],{"class":205,"line":911},47,[203,913,914],{"class":343},"  @media",[203,916,917],{"class":209}," (prefers-reduced-motion: reduce) {\n",[203,919,921],{"class":205,"line":920},48,[203,922,923],{"class":643},"    \u002F* Change a longhand only: keep the list, drop movement time. *\u002F\n",[203,925,927,930,932,934,936,938,940,942,945,947,949,951,953,955,957,959,961,963],{"class":205,"line":926},49,[203,928,929],{"class":217},"    .card",[203,931,418],{"class":209},[203,933,58],{"class":217},[203,935,337],{"class":209},[203,937,668],{"class":217},[203,939,376],{"class":209},[203,941,673],{"class":333},[203,943,944],{"class":209},"), ",[203,946,668],{"class":217},[203,948,376],{"class":209},[203,950,673],{"class":333},[203,952,944],{"class":209},[203,954,384],{"class":217},[203,956,344],{"class":343},[203,958,55],{"class":209},[203,960,384],{"class":217},[203,962,344],{"class":343},[203,964,460],{"class":209},[203,966,968,971,973,976,978,981,983,985],{"class":205,"line":967},50,[203,969,970],{"class":217},"    .card:hover",[203,972,55],{"class":209},[203,974,975],{"class":217},".card:focus-visible",[203,977,418],{"class":209},[203,979,980],{"class":217},"translate",[203,982,337],{"class":209},[203,984,588],{"class":217},[203,986,460],{"class":209},[203,988,990],{"class":205,"line":989},51,[203,991,402],{"class":209},[203,993,995,998,1000],{"class":205,"line":994},52,[203,996,997],{"class":209},"\u003C\u002F",[203,999,316],{"class":213},[203,1001,221],{"class":209},[203,1003,1005,1007,1009],{"class":205,"line":1004},53,[203,1006,997],{"class":209},[203,1008,249],{"class":213},[203,1010,221],{"class":209},[203,1012,1014,1016,1019],{"class":205,"line":1013},54,[203,1015,227],{"class":209},[203,1017,1018],{"class":213},"body",[203,1020,221],{"class":209},[203,1022,1024,1027,1029,1032,1034,1037,1040,1042,1045],{"class":205,"line":1023},55,[203,1025,1026],{"class":209},"  \u003C",[203,1028,32],{"class":213},[203,1030,1031],{"class":217}," class",[203,1033,235],{"class":209},[203,1035,1036],{"class":238},"\"card\"",[203,1038,1039],{"class":217}," href",[203,1041,235],{"class":209},[203,1043,1044],{"class":238},"\"\u002Fguides\u002Fgrid\u002F\"",[203,1046,221],{"class":209},[203,1048,1050,1053,1056,1059,1061],{"class":205,"line":1049},56,[203,1051,1052],{"class":209},"    \u003C",[203,1054,1055],{"class":213},"h3",[203,1057,1058],{"class":209},">Grid guide\u003C\u002F",[203,1060,1055],{"class":213},[203,1062,221],{"class":209},[203,1064,1066,1068,1070,1073,1075],{"class":205,"line":1065},57,[203,1067,1052],{"class":209},[203,1069,20],{"class":213},[203,1071,1072],{"class":209},">Tracks, areas and subgrid in one place.\u003C\u002F",[203,1074,20],{"class":213},[203,1076,221],{"class":209},[203,1078,1080,1083,1085],{"class":205,"line":1079},58,[203,1081,1082],{"class":209},"  \u003C\u002F",[203,1084,32],{"class":213},[203,1086,221],{"class":209},[203,1088,1090,1092,1094],{"class":205,"line":1089},59,[203,1091,997],{"class":209},[203,1093,1018],{"class":213},[203,1095,221],{"class":209},[203,1097,1099,1101,1103],{"class":205,"line":1098},60,[203,1100,997],{"class":209},[203,1102,198],{"class":213},[203,1104,221],{"class":209},[20,1106,1107,1108,1110],{},"The reduced-motion rule demonstrates the safe way to adjust a multi-property transition: override a single longhand with a list of the same length. ",[15,1109,58],{}," gets four entries matching the four properties, so colour transitions keep their duration while movement and shadow become effectively instant. Redeclaring the shorthand there would have required repeating every property, and forgetting one would silently drop it.",[43,1112,1114],{"id":1113},"the-key-technique-declare-the-list-once-vary-values-elsewhere","The key technique: declare the list once, vary values elsewhere",[20,1116,1117,1118,1121,1122,1124,1125,1128],{},"The most common multi-property bug comes from redeclaring the shorthand in a state rule. A base rule transitions colour and shadow; a hover rule adds ",[15,1119,1120],{},"transition: translate 200ms"," to animate a lift. In the hover state, the list now contains only ",[15,1123,980],{},", so colour and shadow changes ",[73,1126,1127],{},"entering"," hover snap instantly — and, because the entered state's list applies, they snap when leaving too if the base is re-entered with a different list.",[78,1130,85,1133,85,1136,85,1139,85,1142,85,1150,85,1156,85,1160,85,1164,85,1172,85,1176,85,1179,85,1182,85,1186],{"viewBox":1131,"role":81,"ariaLabel":1132,"xmlns":83,"style":84},"0 0 720 280","A base rule with three transitions and a hover rule that redeclares the shorthand with one; in the hover state only one transition remains",[87,1134,1135],{},"Redeclaring the shorthand replaces the list",[91,1137,1138],{},"Base rule: transition opacity, colour and shadow. Hover rule: transition translate only. When hover is entered, the effective list is just translate, so opacity, colour and shadow changes are no longer animated.",[95,1140,1141],{"textAnchor":97,"x":98,"y":99,"style":100},"The later shorthand wins completely",[122,1143],{"x":1144,"y":1145,"width":1146,"height":1147,"rx":1148,"fill":128,"opacity":1149},"40","50","300","120","10","0.2",[95,1151,1155],{"textAnchor":97,"x":1152,"y":1153,"style":1154},"190","76","text-anchor:middle;fill:currentColor;font:700 13px sans-serif",".card",[95,1157,1159],{"textAnchor":97,"x":1152,"y":1158,"style":140},"104","transition: opacity …,",[95,1161,1163],{"textAnchor":97,"x":1152,"y":1162,"style":140},"124","color …, box-shadow …",[122,1165],{"x":1166,"y":1145,"width":1146,"height":1147,"rx":1148,"fill":588,"stroke":1167,"strokeWidth":435,"strokeDashArray":1168,"opacity":1171},"380","currentColor",[1169,1170],"6","4","0.7",[95,1173,1175],{"textAnchor":97,"x":1174,"y":1153,"style":1154},"530",".card:hover",[95,1177,1178],{"textAnchor":97,"x":1174,"y":1158,"style":140},"transition: translate …",[95,1180,1181],{"textAnchor":97,"x":1174,"y":1162,"style":176},"(the other three are gone)",[122,1183],{"x":1184,"y":119,"width":148,"height":1145,"rx":1148,"fill":588,"stroke":1167,"strokeWidth":435,"opacity":1185},"60","0.6",[95,1187,1189],{"textAnchor":97,"x":98,"y":1188,"style":176},"226","Fix: put translate in the base list and set only translate's value on hover.",[20,1191,1192,1193,1197,1198,1202,1203,1206],{},"The rule that prevents it: ",[1194,1195,1196],"strong",{},"declare the full transition list once, on the base state, and vary only property values in state rules."," When a state genuinely needs different timing — the asymmetric entry and exit patterns in ",[32,1199,1201],{"href":1200},"\u002Fcss-only-micro-interactions-animations\u002Feasing-and-motion-design\u002Fentry-vs-exit-easing\u002F","Entry vs Exit Easing"," — redeclare the ",[73,1204,1205],{},"whole"," list in that state, never a partial one.",[43,1208,1210],{"id":1209},"choosing-timing-per-property","Choosing timing per property",[20,1212,1213],{},"Once each property has its own entry, the question becomes what timing each deserves. A few rules of thumb produce transitions that feel coherent rather than merely simultaneous.",[20,1215,1216,1219,1220,1222],{},[1194,1217,1218],{},"Colour and opacity change fastest."," They carry state — \"this is hovered\", \"this is selected\" — and the user should perceive the new state almost immediately. 100 to 150 milliseconds with a simple ",[15,1221,160],{}," is usually right.",[20,1224,1225,1228],{},[1194,1226,1227],{},"Movement and scale take a little longer."," Spatial changes need time for the eye to follow, and a strong ease-out makes them feel responsive at the start and soft at the end. 200 to 300 milliseconds suits small lifts and nudges.",[20,1230,1231,1234],{},[1194,1232,1233],{},"Shadows follow movement."," A shadow represents elevation, so it should grow in step with the lift that implies it. Give it the same duration and curve as the translate, or the card appears to rise before its shadow catches up.",[20,1236,1237,1240],{},[1194,1238,1239],{},"Borders and outlines can lead."," A border change slightly before movement makes the state feel crisp. In practice giving borders the fast colour timing achieves this without needing delays.",[20,1242,1243,1246,1247,55,1250,1253,1254,1257,1258,1262],{},[1194,1244,1245],{},"Anything that changes layout should not animate."," If a state change alters ",[15,1248,1249],{},"padding",[15,1251,1252],{},"width"," or ",[15,1255,1256],{},"font-size",", leave those properties out of the list so they switch instantly, and achieve the visual effect with transforms instead. The cost of animating layout is covered in ",[32,1259,1261],{"href":1260},"\u002Fcss-only-micro-interactions-animations\u002Fperformance-gpu-acceleration\u002Foptimizing-css-animations-for-60fps\u002F","Optimizing CSS Animations for 60fps",".",[20,1264,1265,1266,1268,1269,1271],{},"Keeping these timings in tokens, as the example does with ",[15,1267,673],{}," and ",[15,1270,712],{},", means the whole interface shares one vocabulary of speeds, and a single change adjusts every component consistently. It also makes design review concrete: instead of debating individual millisecond values, reviewers check that each property uses the token that matches its role.",[43,1273,1275,1276,1278],{"id":1274},"why-not-transition-all","Why not ",[15,1277,29],{},"?",[20,1280,1281,1284],{},[15,1282,1283],{},"transition: all 250ms"," is tempting because it cannot forget a property. It fails in the other direction: it animates properties you did not intend.",[1286,1287,1288,1300,1314,1320],"ul",{},[1289,1290,1291,1294,1295,1253,1297,1299],"li",{},[1194,1292,1293],{},"Layout properties."," A later class that changes ",[15,1296,1249],{},[15,1298,1252],{}," animates it, re-running layout every frame and shifting neighbours.",[1289,1301,1302,1305,1306,1309,1310,1262],{},[1194,1303,1304],{},"Theme switches."," Toggling a theme animates every colour on every element with ",[15,1307,1308],{},"all",", which is both slow and visually messy, as discussed in ",[32,1311,1313],{"href":1312},"\u002Fcss-only-micro-interactions-animations\u002Fcolor-and-theme-transitions\u002Fsmooth-theme-switching-transitions\u002F","Smooth Theme Switching Transitions",[1289,1315,1316,1319],{},[1194,1317,1318],{},"Unrelated state."," Focus rings, validation colours and visibility changes all inherit the same timing, including ones that should be instant.",[1289,1321,1322,1325],{},[1194,1323,1324],{},"Future changes."," Anyone adding a property to a state rule later gets an animation they did not ask for, and may not notice until it causes a problem.",[20,1327,1328,1329,1331,1332,55,1334,1268,1337,1340],{},"An explicit list documents intent and keeps the motion scoped. Reviewers can read exactly which properties animate and at what speed, and a search for a property name finds every place it is transitioned, which ",[15,1330,1308],{}," makes impossible. When a component genuinely has many animated properties, that is often a sign that some of them could be consolidated — several colour properties driven by one custom property, or several transform functions replaced by the individual ",[15,1333,980],{},[15,1335,1336],{},"scale",[15,1338,1339],{},"rotate"," properties, each with its own list entry. The small cost of naming properties is repaid the first time someone changes a component's padding in a media query and nothing animates.",[43,1342,1344],{"id":1343},"browser-support","Browser support",[20,1346,13,1347,1349,1350,1352,1353,1355],{},[15,1348,17],{}," shorthand with comma-separated lists and all its longhands is supported in every current browser, dating from Chrome 26, Edge 12, Firefox 16 and Safari 9. Custom properties inside transition values, the standalone ",[15,1351,980],{}," property (Chrome and Edge 104+, Firefox 72+, Safari 14.1+) and ",[15,1354,67],{}," (Chrome and Edge 117+, Firefox 129+, Safari 17.4+) extend it without changing the list semantics described here.",[43,1357,1359],{"id":1358},"faq","FAQ",[20,1361,1362,1367],{},[1194,1363,1364,1365,1278],{},"Why should I avoid ",[15,1366,29],{},"\nIt animates every property that changes, including ones you did not intend, such as layout properties changed by a later class or theme, and it makes every future style change on the element animate. That costs performance and produces surprising motion. List the properties you mean.",[20,1369,1370,1373,1374,1376,1377,1380],{},[1194,1371,1372],{},"How do I give each property its own duration?","\nUse a comma-separated list in the ",[15,1375,17],{}," shorthand, one item per property: ",[15,1378,1379],{},"transition: opacity 150ms ease, transform 300ms ease-out",". Each item has its own property, duration, timing function and delay.",[20,1382,1383,1386,1387,1389,1390,1393,1394,1262],{},[1194,1384,1385],{},"Why did my hover rule remove the other transitions?","\nRedeclaring the ",[15,1388,17],{}," shorthand in a later rule replaces the whole list. If the hover rule declares ",[15,1391,1392],{},"transition: transform 200ms",", any opacity or colour transitions from the base rule are gone in the hover state. Redeclare the full list, or change only a longhand such as ",[15,1395,58],{},[20,1397,1398,1401,1403],{},[1194,1399,1400],{},"What happens if the longhand lists have different lengths?",[15,1402,54],{}," decides how many transitions there are. Shorter lists for the other longhands are repeated from the start to match it, and longer lists are truncated. Mismatched lists are a common source of the wrong timing being applied to a property.",[43,1405,1407],{"id":1406},"related","Related",[1286,1409,1410,1415,1422,1429],{},[1289,1411,1412,1414],{},[32,1413,35],{"href":34}," — the parent guide.",[1289,1416,1417,1421],{},[32,1418,1420],{"href":1419},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Finterrupted-and-reversing-transitions\u002F","Interrupted and Reversing Transitions"," — what the list does mid-flight.",[1289,1423,1424,1428],{},[32,1425,1427],{"href":1426},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Ftransition-delay-choreography\u002F","Transition Delay Choreography"," — using the delay column deliberately.",[1289,1430,1431,1435],{},[32,1432,1434],{"href":1433},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Fbuilding-responsive-cards-with-container-queries\u002F","Building Responsive Cards With Container Queries"," — the cards these transitions decorate.",[316,1437,1438],{},"html pre.shiki code .suds8, html code.shiki .suds8{--shiki-default:#0E1116;--shiki-dark:#F0F3F6}html pre.shiki code .sne4z, html code.shiki .sne4z{--shiki-default:#024C1A;--shiki-dark:#72F088}html pre.shiki code .s-5SL, html code.shiki .s-5SL{--shiki-default:#023B95;--shiki-dark:#91CBFF}html pre.shiki code .sT6z2, html code.shiki .sT6z2{--shiki-default:#032563;--shiki-dark:#ADDCFF}html pre.shiki code .soyes, html code.shiki .soyes{--shiki-default:#702C00;--shiki-dark:#FFB757}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 .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":199,"searchDepth":224,"depth":224,"links":1440},[1441,1442,1443,1444,1445,1447,1448,1449],{"id":45,"depth":224,"text":46},{"id":184,"depth":224,"text":185},{"id":1113,"depth":224,"text":1114},{"id":1209,"depth":224,"text":1210},{"id":1274,"depth":224,"text":1446},"Why not transition: all?",{"id":1343,"depth":224,"text":1344},{"id":1358,"depth":224,"text":1359},{"id":1406,"depth":224,"text":1407},"Write transitions for several properties correctly: comma lists, per-property timing, why transition: all is risky, longhand alignment and overrides that break.","md",{"pageTitle":1453,"datePublished":1454,"dateModified":1454,"faq":1455},"Transition Shorthand and Multiple Properties","2026-09-18",[1456,1459,1461,1463],{"q":1457,"a":1458},"Why should I avoid transition: all?","It animates every property that changes, including ones you did not intend, such as layout properties changed by a later class or theme, and it makes every future style change on the element animate. That costs performance and produces surprising motion. List the properties you mean.",{"q":1372,"a":1460},"Use a comma-separated list in the transition shorthand, one item per property: transition: opacity 150ms ease, transform 300ms ease-out. Each item has its own property, duration, timing function and delay.",{"q":1385,"a":1462},"Redeclaring the transition shorthand in a later rule replaces the whole list. If the hover rule declares transition: transform 200ms, any opacity or colour transitions from the base rule are gone in the hover state. Redeclare the full list, or change only a longhand such as transition-duration.",{"q":1400,"a":1464},"transition-property decides how many transitions there are. Shorter lists for the other longhands are repeated from the start to match it, and longer lists are truncated. Mismatched lists are a common source of the wrong timing being applied to a property.","\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Ftransition-shorthand-and-multiple-properties",{"title":5,"description":1450},"css-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Ftransition-shorthand-and-multiple-properties\u002Findex","pJ3-RiJ2OicsOZ8yEvGiYaQi_iJrICWh4Sy53kSKaCQ",[1470,1473,1476,1479,1482,1485,1488,1491,1494,1497,1500,1503,1506,1509,1512,1515,1518,1521,1524,1527,1530,1533,1536,1539,1542,1545,1548,1551,1554,1557,1560,1563,1566,1569,1572,1575,1578,1581,1584,1587,1590,1593,1594,1597,1600,1603,1606,1609,1612,1615,1618,1621,1624,1627,1630,1633,1636,1639,1642,1645,1648,1651,1654,1657,1660,1663,1666,1669,1672,1675,1678,1681,1684,1687,1690,1693,1696,1699,1702,1705,1708,1711,1714,1717,1720,1723,1726,1729,1732,1735,1738,1741,1744,1747,1749,1752,1755,1758,1761,1764,1767,1770,1773,1776,1779,1782,1785,1788,1791,1794,1797,1800,1803,1806,1809,1812,1815,1818,1821,1824,1827,1830,1833,1836,1839,1842,1845,1848,1851,1854,1857,1860,1863,1866,1869,1872,1875,1878,1881,1884,1887,1890,1893,1896,1899,1902,1905,1908,1911,1914,1917,1920,1923,1926,1929,1932,1935,1938,1941,1944,1947,1950,1953,1956,1959,1962,1965,1968,1971,1974,1977,1980,1983,1986,1989,1992,1995,1998,2001,2004,2007,2010,2013,2016,2019,2022,2025],{"path":1471,"title":1472},"\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":1474,"title":1475},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations\u002Fflashing-content-and-seizure-thresholds","Flashing Content and Seizure Thresholds",{"path":1477,"title":1478},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations\u002Fforced-colors-mode-and-animations","Forced Colors Mode and Animations",{"path":1480,"title":1481},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations","Accessibility in CSS Animations: Patterns, Specs & Best Practices",{"path":1483,"title":1484},"\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":1486,"title":1487},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations\u002Fprefers-reduced-motion-recipes","prefers-reduced-motion Recipes: A Reduction for Every Common Effect",{"path":1489,"title":1490},"\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":1492,"title":1493},"\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":1495,"title":1496},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations\u002Fvestibular-safe-animation-patterns","Vestibular-Safe Animation Patterns: Why Some Motion Makes People Sick",{"path":1498,"title":1499},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations\u002Fwcag-motion-success-criteria","WCAG Motion Success Criteria: What Each One Actually Requires",{"path":1501,"title":1502},"\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":1504,"title":1505},"\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":1507,"title":1508},"\u002Fcss-only-micro-interactions-animations\u002Fclip-path-and-mask-animations","Clip-Path & Mask Animations: Animating Visibility Instead of Position",{"path":1510,"title":1511},"\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":1513,"title":1514},"\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":1516,"title":1517},"\u002Fcss-only-micro-interactions-animations\u002Fcolor-and-theme-transitions\u002Fanimating-gradients","Animating CSS Gradients: Smooth Colour Motion Without Jumps",{"path":1519,"title":1520},"\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":1522,"title":1523},"\u002Fcss-only-micro-interactions-animations\u002Fcolor-and-theme-transitions","Color & Theme Transitions: Colour as Part of the Motion System",{"path":1525,"title":1526},"\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":1528,"title":1529},"\u002Fcss-only-micro-interactions-animations\u002Fcolor-and-theme-transitions\u002Fsmooth-theme-switching-transitions","Smooth Theme Switching: Crossfades, Circular Reveals and No Flash",{"path":1531,"title":1532},"\u002Fcss-only-micro-interactions-animations\u002Fcontainer-aware-motion\u002Fcontainer-query-hover-affordances","Container Query Hover Affordances: When Narrow Means Persistent, Not Hidden",{"path":1534,"title":1535},"\u002Fcss-only-micro-interactions-animations\u002Fcontainer-aware-motion","Container-Aware Motion: Animation Sized by the Space a Component Actually Has",{"path":1537,"title":1538},"\u002Fcss-only-micro-interactions-animations\u002Fcontainer-aware-motion\u002Flayout-change-animations-at-container-breakpoints","Animating Changes at Container Breakpoints",{"path":1540,"title":1541},"\u002Fcss-only-micro-interactions-animations\u002Fcontainer-aware-motion\u002Fmotion-driven-by-container-style-queries","Motion Driven by Container Style Queries",{"path":1543,"title":1544},"\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":1546,"title":1547},"\u002Fcss-only-micro-interactions-animations\u002Fcontainer-aware-motion\u002Fsuppressing-motion-in-small-containers","Suppressing Motion in Small Containers: Deliberately Animating Nothing",{"path":1549,"title":1550},"\u002Fcss-only-micro-interactions-animations\u002Fcss-animation-vs-web-animations-api\u002Fcontrolling-css-animations-from-javascript","Controlling CSS Animations From JavaScript",{"path":1552,"title":1553},"\u002Fcss-only-micro-interactions-animations\u002Fcss-animation-vs-web-animations-api","CSS Animation vs the Web Animations API: A Decision Guide",{"path":1555,"title":1556},"\u002Fcss-only-micro-interactions-animations\u002Fcss-animation-vs-web-animations-api\u002Fwaapi-vs-css-for-interruptible-ui","Interruptible UI: CSS Transitions vs WAAPI",{"path":1558,"title":1559},"\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":1561,"title":1562},"\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":1564,"title":1565},"\u002Fcss-only-micro-interactions-animations\u002Fcss-custom-properties-architecture\u002Fcustom-property-fallbacks-and-invalid-values","Custom Property Fallbacks and Invalid Values",{"path":1567,"title":1568},"\u002Fcss-only-micro-interactions-animations\u002Fcss-custom-properties-architecture\u002Ffluid-spacing-tokens-driving-transition-durations","Fluid Spacing Tokens That Drive Transition Durations",{"path":1570,"title":1571},"\u002Fcss-only-micro-interactions-animations\u002Fcss-custom-properties-architecture","CSS Custom Properties Architecture: Scalable Design Systems & Dynamic UI",{"path":1573,"title":1574},"\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":1576,"title":1577},"\u002Fcss-only-micro-interactions-animations\u002Fcss-custom-properties-architecture\u002Fscoping-custom-properties-to-components","Scoping Custom Properties to Components",{"path":1579,"title":1580},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Fcss-transition-timing-functions","CSS Transition Timing Functions: ease, cubic-bezier(), steps() and linear()",{"path":1582,"title":1583},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals","CSS Transition Fundamentals: Architecture, Performance & Patterns",{"path":1585,"title":1586},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Finterrupted-and-reversing-transitions","Interrupted and Reversing Transitions: What Happens Mid-Flight",{"path":1588,"title":1589},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Fstarting-style-entry-animations","@starting-style: Animating an Element's Very First Style Change",{"path":1591,"title":1592},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Ftransition-delay-choreography","Choreographing Motion With transition-delay",{"path":1465,"title":5},{"path":1595,"title":1596},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Ftransitioning-display-with-allow-discrete","Transitioning display with transition-behavior: allow-discrete and @starting-style",{"path":1598,"title":1599},"\u002Fcss-only-micro-interactions-animations\u002Fdialog-and-popover-animations\u002Fanimating-dialog-open-and-close","Animating \u003Cdialog> Open and Close: Both Directions, No Library",{"path":1601,"title":1602},"\u002Fcss-only-micro-interactions-animations\u002Fdialog-and-popover-animations\u002Fbackdrop-animations","Animating ::backdrop: Fades and Blurs Behind Dialogs and Popovers",{"path":1604,"title":1605},"\u002Fcss-only-micro-interactions-animations\u002Fdialog-and-popover-animations","Dialog & Popover Animations: Motion for the Top Layer",{"path":1607,"title":1608},"\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":1610,"title":1611},"\u002Fcss-only-micro-interactions-animations\u002Fdialog-and-popover-animations\u002Fpopover-entry-and-exit-transitions","Popover Menus That Animate From Their Anchor",{"path":1613,"title":1614},"\u002Fcss-only-micro-interactions-animations\u002Feasing-and-motion-design\u002Fchoosing-animation-durations","Choosing Animation Durations: How Long Motion Should Last",{"path":1616,"title":1617},"\u002Fcss-only-micro-interactions-animations\u002Feasing-and-motion-design\u002Fcubic-bezier-overshoot-and-anticipation","Overshoot and Anticipation With cubic-bezier(): Motion With Character",{"path":1619,"title":1620},"\u002Fcss-only-micro-interactions-animations\u002Feasing-and-motion-design\u002Fentry-vs-exit-easing","Entry vs Exit Easing: Different Curves for Arriving and Leaving",{"path":1622,"title":1623},"\u002Fcss-only-micro-interactions-animations\u002Feasing-and-motion-design","Easing & Motion Design: Making CSS Motion Feel Intentional",{"path":1625,"title":1626},"\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":1628,"title":1629},"\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":1631,"title":1632},"\u002Fcss-only-micro-interactions-animations\u002Fhover-focus-state-design\u002Faccessible-css-only-tooltips","Accessible CSS-Only Tooltips and Hover Cards With  and ",{"path":1634,"title":1635},"\u002Fcss-only-micro-interactions-animations\u002Fhover-focus-state-design\u002Fbutton-press-and-active-states","Button Press and  States",{"path":1637,"title":1638},"\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":1640,"title":1641},"\u002Fcss-only-micro-interactions-animations\u002Fhover-focus-state-design\u002Ffocus-within-form-patterns"," Form Patterns: Styling a Group From the Field Inside It",{"path":1643,"title":1644},"\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":1646,"title":1647},"\u002Fcss-only-micro-interactions-animations\u002Fhover-focus-state-design","Hover & Focus State Design: Spec-Compliant Patterns for Modern UIs",{"path":1649,"title":1650},"\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":1652,"title":1653},"\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":1655,"title":1656},"\u002Fcss-only-micro-interactions-animations","CSS-Only Micro-Interactions & Animations: Architecture, Performance & Implementation",{"path":1658,"title":1659},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns\u002Fanimation-composition-and-stacking","Stacking Animations With animation-composition",{"path":1661,"title":1662},"\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":1664,"title":1665},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns\u002Fcontainer-query-triggered-keyframe-animations","Container-Query-Triggered Keyframe Animations: Animate Differently per Available Space",{"path":1667,"title":1668},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns\u002Fcss-only-accordions-and-disclosure","CSS-Only Accordions and Disclosure Widgets with details and summary",{"path":1670,"title":1671},"\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":1673,"title":1674},"\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":1676,"title":1677},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns","Keyframe Animation Patterns: Spec-Compliant Architectures for Modern UIs",{"path":1679,"title":1680},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns\u002Fmulti-step-keyframes-and-per-keyframe-easing","Multi-Step Keyframes and Per-Keyframe Easing",{"path":1682,"title":1683},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns\u002Fstaggered-list-animations-with-custom-properties","Staggered List Animations Using --i Index Custom Properties",{"path":1685,"title":1686},"\u002Fcss-only-micro-interactions-animations\u002Fperformance-gpu-acceleration\u002Fanimating-box-shadow-and-filters-cheaply","Animating box-shadow and Filters Cheaply",{"path":1688,"title":1689},"\u002Fcss-only-micro-interactions-animations\u002Fperformance-gpu-acceleration\u002Fcontain-property-for-animation-performance","The contain Property for Animation Performance",{"path":1691,"title":1692},"\u002Fcss-only-micro-interactions-animations\u002Fperformance-gpu-acceleration\u002Fcss-triggers-layout-paint-composite","Layout, Paint and Composite: What Triggers What",{"path":1694,"title":1695},"\u002Fcss-only-micro-interactions-animations\u002Fperformance-gpu-acceleration","Performance & GPU Acceleration in CSS: A Developer’s Blueprint",{"path":1697,"title":1698},"\u002Fcss-only-micro-interactions-animations\u002Fperformance-gpu-acceleration\u002Foptimizing-css-animations-for-60fps","Optimizing CSS Animations for 60fps: Budgeting the Frame",{"path":1700,"title":1701},"\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":1703,"title":1704},"\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":1706,"title":1707},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations","Scroll-Driven Animations: Binding Motion to Scroll Position in Pure CSS",{"path":1709,"title":1710},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations\u002Fscroll-driven-animation-fallbacks","Shipping Scroll-Driven Animations Without Breaking Anything",{"path":1712,"title":1713},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations\u002Fscroll-driven-parallax-effects","Scroll-Driven Parallax Effects in CSS",{"path":1715,"title":1716},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations\u002Fscroll-progress-bar-without-javascript","A Reading Progress Bar Driven by scroll(root)",{"path":1718,"title":1719},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations\u002Fscroll-triggered-reveal-animations","Reveal-on-Scroll with view() and animation-range",{"path":1721,"title":1722},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations\u002Ftimeline-scope-for-cross-element-animations","timeline-scope for Cross-Element Animations",{"path":1724,"title":1725},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations\u002Fview-timeline-and-animation-range","View Timelines and animation-range",{"path":1727,"title":1728},"\u002Fcss-only-micro-interactions-animations\u002Fview-transitions-for-css-developers\u002Fcross-document-view-transitions","Cross-Document View Transitions",{"path":1730,"title":1731},"\u002Fcss-only-micro-interactions-animations\u002Fview-transitions-for-css-developers","View Transitions for CSS Developers: the Pseudo-Element Tree, Snapshots, and Named Elements",{"path":1733,"title":1734},"\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":1736,"title":1737},"\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":1739,"title":1740},"\u002Fcss-only-micro-interactions-animations\u002Fview-transitions-for-css-developers\u002Fview-transition-types-and-classes","View Transition Types and Classes",{"path":1742,"title":1743},"\u002Fcss-only-micro-interactions-animations\u002Fview-transitions-for-css-developers\u002Fview-transitions-for-list-reordering","View Transitions for List Reordering",{"path":1745,"title":1746},"\u002Fcss-only-micro-interactions-animations\u002Fview-transitions-for-css-developers\u002Fview-transitions-with-reduced-motion","Honouring prefers-reduced-motion in View Transitions",{"path":432,"title":1748},"Modern CSS Layouts & Micro-Interactions",{"path":1750,"title":1751},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays\u002Fanchor-positioned-tooltips","Anchor-Positioned Tooltips: Tethering, Flipping, and Getting the Semantics Right",{"path":1753,"title":1754},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays\u002Fanchor-positioning-fallbacks","Anchor Positioning Fallbacks: A Graceful Floor for Older Browser Versions",{"path":1756,"title":1757},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays\u002Fanchor-size-for-matching-widths","anchor-size(): Overlays That Match Their Trigger's Size",{"path":1759,"title":1760},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays","CSS Anchor Positioning and Overlays: Tethering Elements Without JavaScript",{"path":1762,"title":1763},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays\u002Fpopover-attribute-and-css-styling","The popover Attribute: Top-Layer Overlays With No JavaScript",{"path":1765,"title":1766},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays\u002Fpopover-light-dismiss-and-stacking","Popover Light Dismiss, Nesting and Stacking",{"path":1768,"title":1769},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays\u002Fposition-area-grid-explained","position-area: The Anchor Placement Grid",{"path":1771,"title":1772},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks\u002Fcontainer-query-polyfill-tradeoffs","Container Query Polyfills: What They Cost and When to Skip Them",{"path":1774,"title":1775},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks\u002Ffeature-detection-with-supports","Feature Detection with @supports: Syntax, Semantics, and the Traps",{"path":1777,"title":1778},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks\u002Fhandling-container-query-fallbacks-for-older-browsers","Handling Container Query Fallbacks for Older Browsers",{"path":1780,"title":1781},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks","Container Query Fallbacks: Spec-Compliant CSS Strategies for Legacy Browsers",{"path":1783,"title":1784},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks\u002Fintrinsic-layout-fallbacks-without-queries","Intrinsic Layout Fallbacks: Baselines That Adapt Without Any Query",{"path":1786,"title":1787},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks\u002Ftesting-fallbacks-without-old-browsers","Testing CSS Fallbacks Without an Old Browser",{"path":1789,"title":1790},"\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":1792,"title":1793},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-syntax-basics\u002Fcontainer-query-range-and-logic-operators","Container Query Range Syntax and Logic Operators",{"path":1795,"title":1796},"\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":1798,"title":1799},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-syntax-basics\u002Fcontainer-type-size-vs-inline-size","Choosing container-type: inline-size, size, or normal",{"path":1801,"title":1802},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-syntax-basics\u002Fcontainer-vs-media-queries-comparison","Container vs Media Queries: Choosing the Right Reference Box",{"path":1804,"title":1805},"\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":1807,"title":1808},"\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":1810,"title":1811},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-syntax-basics","Container Query Syntax Basics",{"path":1813,"title":1814},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-syntax-basics\u002Fnesting-and-naming-container-queries","Nesting and Naming Container Queries: Targeting the Right Ancestor",{"path":1816,"title":1817},"\u002Fmastering-container-queries-responsive-layouts\u002Fcss-grid-and-subgrid-layouts\u002Fauto-fit-minmax-responsive-grids","Responsive Grids with repeat(auto-fit, minmax())",{"path":1819,"title":1820},"\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":1822,"title":1823},"\u002Fmastering-container-queries-responsive-layouts\u002Fcss-grid-and-subgrid-layouts\u002Fgrid-auto-flow-dense-packing","grid-auto-flow: dense for Packed Layouts",{"path":1825,"title":1826},"\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":1828,"title":1829},"\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":1831,"title":1832},"\u002Fmastering-container-queries-responsive-layouts\u002Fcss-grid-and-subgrid-layouts","CSS Grid and Subgrid Layouts for Responsive Interfaces",{"path":1834,"title":1835},"\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":1837,"title":1838},"\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":1840,"title":1841},"\u002Fmastering-container-queries-responsive-layouts\u002Fcss-grid-and-subgrid-layouts\u002Fsubgrid-vs-nested-grid","Subgrid vs an Independently Nested Grid",{"path":1843,"title":1844},"\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":1846,"title":1847},"\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":1849,"title":1850},"\u002Fmastering-container-queries-responsive-layouts\u002Fflexbox-layout-patterns\u002Fflex-grow-and-flex-shrink-explained","flex-grow and flex-shrink Explained",{"path":1852,"title":1853},"\u002Fmastering-container-queries-responsive-layouts\u002Fflexbox-layout-patterns\u002Fflex-wrap-intrinsic-responsive-rows","Breakpoint-Free Responsive Rows With flex-wrap and flex-basis",{"path":1855,"title":1856},"\u002Fmastering-container-queries-responsive-layouts\u002Fflexbox-layout-patterns\u002Fflexbox-gap-and-spacing","Flexbox gap vs Margins: Spacing Items Without Edge Hacks",{"path":1858,"title":1859},"\u002Fmastering-container-queries-responsive-layouts\u002Fflexbox-layout-patterns","Flexbox Layout Patterns: One-Dimensional Layout for Real Components",{"path":1861,"title":1862},"\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":1864,"title":1865},"\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":1867,"title":1868},"\u002Fmastering-container-queries-responsive-layouts\u002Ffluid-typography-with-clamp\u002Fdebugging-clamp-values","Debugging clamp(): Values That Are Ignored, Stuck or Never Fluid",{"path":1870,"title":1871},"\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":1873,"title":1874},"\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":1876,"title":1877},"\u002Fmastering-container-queries-responsive-layouts\u002Ffluid-typography-with-clamp\u002Ffluid-type-accessibility-and-zoom","Fluid Type, Accessibility and Zoom: The vw-Only Trap",{"path":1879,"title":1880},"\u002Fmastering-container-queries-responsive-layouts\u002Ffluid-typography-with-clamp\u002Ffluid-typography-without-javascript","Fluid Typography Without JavaScript: A Precision CSS Reference",{"path":1882,"title":1883},"\u002Fmastering-container-queries-responsive-layouts\u002Ffluid-typography-with-clamp","Fluid Typography with clamp(): A Practical Guide for Modern CSS",{"path":1885,"title":1886},"\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":1888,"title":1889},"\u002Fmastering-container-queries-responsive-layouts","Mastering Container Queries & Responsive Layouts",{"path":1891,"title":1892},"\u002Fmastering-container-queries-responsive-layouts\u002Fintrinsic-sizing-techniques\u002Faspect-ratio-for-responsive-media","Using aspect-ratio for Responsive Media and Preventing Layout Shift",{"path":1894,"title":1895},"\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":1897,"title":1898},"\u002Fmastering-container-queries-responsive-layouts\u002Fintrinsic-sizing-techniques","Intrinsic Sizing Techniques: Modern CSS Layouts for Responsive UI",{"path":1900,"title":1901},"\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":1903,"title":1904},"\u002Fmastering-container-queries-responsive-layouts\u002Fintrinsic-sizing-techniques\u002Fmin-max-fit-content-explained","min-content, max-content, and fit-content() Explained",{"path":1906,"title":1907},"\u002Fmastering-container-queries-responsive-layouts\u002Fintrinsic-sizing-techniques\u002Fobject-fit-and-object-position","object-fit and object-position: Images That Fit Any Box",{"path":1909,"title":1910},"\u002Fmastering-container-queries-responsive-layouts\u002Fintrinsic-sizing-techniques\u002Fpreventing-flex-and-grid-overflow","The min-width: auto Trap in Flex and Grid Layouts",{"path":1912,"title":1913},"\u002Fmastering-container-queries-responsive-layouts\u002Fmodern-css-reset-strategies\u002Fcascade-layers-for-reset-and-tokens","Cascade Layers for Reset and Design Tokens",{"path":1915,"title":1916},"\u002Fmastering-container-queries-responsive-layouts\u002Fmodern-css-reset-strategies\u002Fcascade-layers-vs-specificity-hacks","Cascade Layers vs Specificity Hacks: Ordering Instead of Escalating",{"path":1918,"title":1919},"\u002Fmastering-container-queries-responsive-layouts\u002Fmodern-css-reset-strategies\u002Fcss-scope-for-component-styles","@scope for Component Styles: Short Selectors That Cannot Leak",{"path":1921,"title":1922},"\u002Fmastering-container-queries-responsive-layouts\u002Fmodern-css-reset-strategies","Modern CSS Reset Strategies: A Spec-Compliant Foundation",{"path":1924,"title":1925},"\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":1927,"title":1928},"\u002Fmastering-container-queries-responsive-layouts\u002Fmodern-css-reset-strategies\u002Fwriting-a-minimal-modern-reset","Writing a Minimal Modern CSS Reset: Every Line Justified",{"path":1930,"title":1931},"\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":1933,"title":1934},"\u002Fmastering-container-queries-responsive-layouts\u002Fparent-aware-layouts-with-has\u002Fempty-and-loading-states-with-has","Empty and Loading States With ()",{"path":1936,"title":1937},"\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":1939,"title":1940},"\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":1942,"title":1943},"\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":1945,"title":1946},"\u002Fmastering-container-queries-responsive-layouts\u002Fparent-aware-layouts-with-has","Parent-Aware Layouts With :has(): Letting Containers React to Their Contents",{"path":1948,"title":1949},"\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":1951,"title":1952},"\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":1954,"title":1955},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Fcontainer-query-data-tables","Container Query Data Tables: Reflowing Tables to Cards",{"path":1957,"title":1958},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Fcontainer-query-sidebar-layouts","Container Query Sidebar Layouts That Travel Between Contexts",{"path":1960,"title":1961},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns","Responsive Component Patterns: Architecture & Implementation",{"path":1963,"title":1964},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Fresponsive-forms-with-container-queries","Responsive Forms with Container Queries: Reflow Without Losing the Wiring",{"path":1966,"title":1967},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Fresponsive-hero-sections-with-container-queries","Responsive Hero Sections With Container Queries",{"path":1969,"title":1970},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Fresponsive-navigation-without-media-queries","Responsive Navigation Without Media Queries Using Container Queries",{"path":1972,"title":1973},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Fresponsive-pricing-tables","Responsive Pricing Tables: Aligned Features, a Clear Recommendation, Any Width",{"path":1975,"title":1976},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Ftabs-that-become-accordions","Tabs That Become an Accordion: One Component, Two Layouts",{"path":1978,"title":1979},"\u002Fmastering-container-queries-responsive-layouts\u002Fscroll-snap-and-overflow-layouts\u002Fcss-only-carousel-with-scroll-snap","A CSS-Only Carousel With Scroll Snap",{"path":1981,"title":1982},"\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":1984,"title":1985},"\u002Fmastering-container-queries-responsive-layouts\u002Fscroll-snap-and-overflow-layouts","Scroll Snap & Overflow Layouts: Designing Components That Scroll on Purpose",{"path":1987,"title":1988},"\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":1990,"title":1991},"\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":1993,"title":1994},"\u002Fmastering-container-queries-responsive-layouts\u002Fstyle-queries-and-container-state\u002Fcombining-size-and-style-queries","Combining Size and Style Container Queries",{"path":1996,"title":1997},"\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":1999,"title":2000},"\u002Fmastering-container-queries-responsive-layouts\u002Fstyle-queries-and-container-state","Style Queries and Container State: Token-Driven Component Variants",{"path":2002,"title":2003},"\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":2005,"title":2006},"\u002Fmastering-container-queries-responsive-layouts\u002Fstyle-queries-and-container-state\u002Fstyle-query-component-variants","Component Variants With Style Queries: One Token, Many Looks",{"path":2008,"title":2009},"\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":2011,"title":2012},"\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":2014,"title":2015},"\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":2017,"title":2018},"\u002Fmastering-container-queries-responsive-layouts\u002Fviewport-units-and-mobile-layout","Viewport Units & Mobile Layout: Designing for the Screen You Actually Get",{"path":2020,"title":2021},"\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":2023,"title":2024},"\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":2026,"title":2027},"\u002Fmastering-container-queries-responsive-layouts\u002Fviewport-units-and-mobile-layout\u002Fvirtual-keyboard-and-interactive-widget","Layouts That Survive the Virtual Keyboard",{"title":2029,"caption":2030,"height":2031,"html":2032,"css":2033},"Four properties, four timings, one transition list","Hover or Tab to the card: border and background change quickly while the lift and shadow ease in more slowly.",220,"\n\u003Ca class=\"card\" href=\"#\">\n  \u003Ch3>Grid guide\u003C\u002Fh3>\n  \u003Cp>Tracks, areas and subgrid in one place.\u003C\u002Fp>\n\u003C\u002Fa>","\n:root { --fast: 150ms; --base: 250ms; --ease-out: cubic-bezier(0.22, 1, 0.36, 1); }\n.card {\n  display: block; max-width: 18rem; padding: 1.25rem; border: 1px solid var(--demo-border); border-radius: 12px;\n  background: var(--demo-bg); color: inherit; text-decoration: none; box-shadow: 0 1px 2px rgb(15 23 42 \u002F 0.08);\n  transition: border-color var(--fast) ease, background-color var(--fast) ease, translate var(--base) var(--ease-out), box-shadow var(--base) var(--ease-out);\n}\n.card h3 { margin: 0 0 0.3rem; }\n.card p { margin: 0; color: var(--demo-muted); }\n.card:hover, .card:focus-visible { border-color: #6366f1; background-color: var(--demo-surface); translate: 0 -3px; box-shadow: 0 12px 28px rgb(15 23 42 \u002F 0.14); }\n.card:focus-visible { outline: 2px solid var(--demo-accent); outline-offset: 3px; }\n@media (prefers-reduced-motion: reduce) {\n  .card { transition-duration: var(--fast), var(--fast), 1ms, 1ms; }\n  .card:hover, .card:focus-visible { translate: none; }\n}",1789717749643]