[{"data":1,"prerenderedAt":2801},["ShallowReactive",2],{"page-\u002Fcss-only-micro-interactions-animations\u002Fview-transitions-for-css-developers\u002Fview-transitions-for-list-reordering\u002F":3,"content-all-pages":2243},{"id":4,"title":5,"body":6,"description":2226,"extension":2227,"meta":2228,"navigation":517,"path":2239,"seo":2240,"stem":2241,"__hash__":2242},"content\u002Fcss-only-micro-interactions-animations\u002Fview-transitions-for-css-developers\u002Fview-transitions-for-list-reordering\u002Findex.md","View Transitions for List Reordering",{"type":7,"value":8,"toc":2215},"minimark",[9,13,33,38,49,147,151,154,1883,1888,1892,1908,2000,2015,2019,2022,2029,2091,2094,2098,2106,2109,2113,2123,2127,2145,2149,2163,2169,2175,2181,2185,2212],[10,11,5],"h1",{"id":12},"view-transitions-for-list-reordering",[14,15,16,17,21,22,27,28,32],"p",{},"Sorting a table, filtering a product list, dragging a task into a new position: in each case items jump to new places, and without animation the user loses track of what went where. The classic fix is FLIP — measure every item's First position, apply the change, measure the Last position, Invert with a transform, then Play the transform back to zero. It works, and it takes a small library or a careful hundred lines of script. A same-document view transition performs the same measurement and animation natively. Give each item a unique name, wrap the DOM update in ",[18,19,20],"code",{},"startViewTransition",", and the browser morphs every item from its old box to its new one. This page covers the naming, the styling of moving, entering and leaving items, and the limits for long lists. It belongs to ",[23,24,26],"a",{"href":25},"\u002Fcss-only-micro-interactions-animations\u002Fview-transitions-for-css-developers\u002F","View Transitions for CSS Developers"," in the ",[23,29,31],{"href":30},"\u002Fcss-only-micro-interactions-animations\u002F","CSS-Only Micro-Interactions & Animations"," guide.",[34,35,37],"h2",{"id":36},"what-the-browser-does-for-each-item","What the browser does for each item",[14,39,40,41,44,45,48],{},"When the transition starts, the browser snapshots every element with a ",[18,42,43],{},"view-transition-name",". After the update callback runs, it snapshots them again. For each name present in both captures it creates a ",[18,46,47],{},"::view-transition-group"," that animates from the old box's position and size to the new one, with the old and new images crossfading inside. Names present only before are leaving items; names present only after are entering items.",[50,51,57,58,57,62,57,66,57,74,57,80,57,84,57,95,57,98,57,101,57,104,57,106,57,108,57,113,57,117,57,121,57,123,57,125,57,127,57,134,57,137,57,142],"svg",{"viewBox":52,"role":53,"ariaLabel":54,"xmlns":55,"style":56},"0 0 720 300","img","A list sorted from C, A, B to A, B, C: each item's group animates from its old row to its new row","http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg","width:100%;height:auto;max-width:720px;margin:2rem 0","\n  ",[59,60,61],"title",{},"Every named item gets its own group",[63,64,65],"desc",{},"On the left, a list in the order C, A, B. On the right, the same items sorted A, B, C. Arrows connect each item's old row to its new row: C moves from first to last, A moves up from second to first, B moves up from third to second. Each arrow is one view-transition group.",[67,68,73],"text",{"textAnchor":69,"x":70,"y":71,"style":72},"middle","360","26","text-anchor:middle;fill:currentColor;font:700 17px sans-serif","Old row to new row, one group per item",[67,75,79],{"textAnchor":69,"x":76,"y":77,"style":78},"150","58","text-anchor:middle;fill:currentColor;font:600 13px sans-serif","before sort",[67,81,83],{"textAnchor":69,"x":82,"y":77,"style":78},"570","after sort",[85,86],"rect",{"x":87,"y":88,"width":89,"height":90,"rx":91,"fill":92,"opacity":93,"stroke":92,"strokeWidth":94},"60","74","180","44","6","#7aa2ff","0.2","1.5",[85,96],{"x":87,"y":97,"width":89,"height":90,"rx":91,"fill":92,"opacity":93,"stroke":92,"strokeWidth":94},"134",[85,99],{"x":87,"y":100,"width":89,"height":90,"rx":91,"fill":92,"opacity":93,"stroke":92,"strokeWidth":94},"194",[85,102],{"x":103,"y":88,"width":89,"height":90,"rx":91,"fill":92,"opacity":93,"stroke":92,"strokeWidth":94},"480",[85,105],{"x":103,"y":97,"width":89,"height":90,"rx":91,"fill":92,"opacity":93,"stroke":92,"strokeWidth":94},[85,107],{"x":103,"y":100,"width":89,"height":90,"rx":91,"fill":92,"opacity":93,"stroke":92,"strokeWidth":94},[67,109,112],{"textAnchor":69,"x":76,"y":110,"style":111},"101","text-anchor:middle;fill:currentColor;font:13px ui-monospace,monospace","item-c",[67,114,116],{"textAnchor":69,"x":76,"y":115,"style":111},"161","item-a",[67,118,120],{"textAnchor":69,"x":76,"y":119,"style":111},"221","item-b",[67,122,116],{"textAnchor":69,"x":82,"y":110,"style":111},[67,124,120],{"textAnchor":69,"x":82,"y":115,"style":111},[67,126,112],{"textAnchor":69,"x":82,"y":119,"style":111},[128,129],"path",{"d":130,"fill":131,"stroke":132,"strokeWidth":133},"M240 96 C340 96 380 216 480 216","none","currentColor","2",[128,135],{"d":136,"fill":131,"stroke":92,"strokeWidth":133},"M240 156 C340 156 380 96 480 96",[128,138],{"d":139,"fill":131,"stroke":92,"strokeWidth":133,"strokeDashArray":140},"M240 216 C340 216 380 156 480 156",[91,141],"4",[67,143,146],{"textAnchor":69,"x":70,"y":144,"style":145},"280","text-anchor:middle;fill:currentColor;font:12px sans-serif","Pairing is by name, so the DOM nodes can be entirely replaced.",[34,148,150],{"id":149},"the-complete-implementation","The complete implementation",[14,152,153],{},"A sortable, filterable task list. The script only changes the DOM; every visual effect is in CSS.",[155,156,161],"pre",{"className":157,"code":158,"language":159,"meta":160,"style":160},"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>Reordering with view transitions\u003C\u002Ftitle>\n\u003Cstyle>\n  body { font: 15px\u002F1.5 system-ui, sans-serif; margin: 2rem; }\n  .toolbar { display: flex; gap: 0.5rem; margin-block-end: 1rem; }\n  .visually-hidden { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }\n  .tasks { list-style: none; padding: 0; display: grid; gap: 0.5rem; max-inline-size: 28rem; }\n\n  .task {\n    view-transition-class: task;\n    display: flex;\n    justify-content: space-between;\n    padding: 0.75rem 1rem;\n    border: 1px solid #cbd5e1;\n    border-radius: 8px;\n    background: #fff;\n  }\n\n  \u002F* Moving items: a firm, short move. *\u002F\n  ::view-transition-group(*.task) {\n    animation-duration: 280ms;\n    animation-timing-function: cubic-bezier(0.2, 0, 0, 1);\n  }\n\n  \u002F* Leaving and entering items: fade and shrink instead of crossfading in place. *\u002F\n  ::view-transition-old(*.task):only-child { animation: task-out 180ms ease-in both; }\n  ::view-transition-new(*.task):only-child { animation: task-in 220ms ease-out 60ms both; }\n\n  @keyframes task-out { to   { opacity: 0; scale: 0.9; } }\n  @keyframes task-in  { from { opacity: 0; scale: 0.9; } }\n\n  @media (prefers-reduced-motion: reduce) {\n    \u002F* Include the :only-child selectors: they are more specific\n       than the plain ones and would otherwise keep their timings. *\u002F\n    ::view-transition-group(*.task),\n    ::view-transition-old(*.task):only-child,\n    ::view-transition-new(*.task):only-child {\n      animation-duration: 1ms;\n      animation-delay: 0s;\n    }\n  }\n\u003C\u002Fstyle>\n\u003C\u002Fhead>\n\u003Cbody>\n  \u003Cdiv class=\"toolbar\">\n    \u003Cbutton type=\"button\" data-sort=\"due\">Sort by due date\u003C\u002Fbutton>\n    \u003Cbutton type=\"button\" data-sort=\"name\">Sort by name\u003C\u002Fbutton>\n    \u003Cbutton type=\"button\" data-filter>Hide done\u003C\u002Fbutton>\n  \u003C\u002Fdiv>\n  \u003Cp class=\"visually-hidden\" aria-live=\"polite\" id=\"status\">\u003C\u002Fp>\n  \u003Cul class=\"tasks\" id=\"tasks\">\u003C\u002Ful>\n\n  \u003Cscript>\n    const tasks = [\n      { id: 't1', name: 'Write release notes', due: 3, done: false },\n      { id: 't2', name: 'Fix login bug',       due: 1, done: true  },\n      { id: 't3', name: 'Review pull request', due: 2, done: false },\n    ];\n    let sortKey = 'due';\n    let hideDone = false;\n\n    function render() {\n      const list = document.getElementById('tasks');\n      const shown = tasks\n        .filter((t) => !(hideDone && t.done))\n        .sort((a, b) => (a[sortKey] > b[sortKey] ? 1 : -1));\n      list.replaceChildren(...shown.map((t) => {\n        const li = document.createElement('li');\n        li.className = 'task';\n        li.style.viewTransitionName = `task-${t.id}`;   \u002F* unique per item *\u002F\n        li.textContent = t.name;\n        return li;\n      }));\n      document.getElementById('status').textContent =\n        `${shown.length} tasks, sorted by ${sortKey === 'due' ? 'due date' : 'name'}`;\n    }\n\n    function update(change) {\n      if (!document.startViewTransition) { change(); render(); return; }\n      document.startViewTransition(() => { change(); render(); });\n    }\n\n    document.querySelectorAll('[data-sort]').forEach((b) =>\n      b.addEventListener('click', () => update(() => { sortKey = b.dataset.sort; })));\n    document.querySelector('[data-filter]').addEventListener('click', () =>\n      update(() => { hideDone = !hideDone; }));\n\n    render();\n  \u003C\u002Fscript>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n","html","",[18,162,163,183,203,213,231,256,270,280,332,374,454,512,519,528,537,550,563,583,603,618,631,637,642,649,664,679,709,714,719,725,761,799,804,842,874,879,888,894,900,913,930,946,960,975,981,986,996,1005,1015,1034,1066,1093,1116,1126,1163,1190,1195,1205,1220,1250,1276,1299,1305,1321,1336,1341,1354,1378,1391,1424,1470,1500,1523,1536,1564,1575,1584,1590,1609,1647,1652,1657,1672,1702,1725,1730,1735,1764,1797,1822,1842,1847,1856,1865,1874],{"__ignoreMap":160},[164,165,168,172,176,180],"span",{"class":166,"line":167},"line",1,[164,169,171],{"class":170},"suds8","\u003C!",[164,173,175],{"class":174},"sne4z","doctype",[164,177,179],{"class":178},"s-5SL"," html",[164,181,182],{"class":170},">\n",[164,184,186,189,191,194,197,201],{"class":166,"line":185},2,[164,187,188],{"class":170},"\u003C",[164,190,159],{"class":174},[164,192,193],{"class":178}," lang",[164,195,196],{"class":170},"=",[164,198,200],{"class":199},"sT6z2","\"en\"",[164,202,182],{"class":170},[164,204,206,208,211],{"class":166,"line":205},3,[164,207,188],{"class":170},[164,209,210],{"class":174},"head",[164,212,182],{"class":170},[164,214,216,218,221,224,226,229],{"class":166,"line":215},4,[164,217,188],{"class":170},[164,219,220],{"class":174},"meta",[164,222,223],{"class":178}," charset",[164,225,196],{"class":170},[164,227,228],{"class":199},"\"utf-8\"",[164,230,182],{"class":170},[164,232,234,236,238,241,243,246,249,251,254],{"class":166,"line":233},5,[164,235,188],{"class":170},[164,237,220],{"class":174},[164,239,240],{"class":178}," name",[164,242,196],{"class":170},[164,244,245],{"class":199},"\"viewport\"",[164,247,248],{"class":178}," content",[164,250,196],{"class":170},[164,252,253],{"class":199},"\"width=device-width, initial-scale=1\"",[164,255,182],{"class":170},[164,257,259,261,263,266,268],{"class":166,"line":258},6,[164,260,188],{"class":170},[164,262,59],{"class":174},[164,264,265],{"class":170},">Reordering with view transitions\u003C\u002F",[164,267,59],{"class":174},[164,269,182],{"class":170},[164,271,273,275,278],{"class":166,"line":272},7,[164,274,188],{"class":170},[164,276,277],{"class":174},"style",[164,279,182],{"class":170},[164,281,283,286,289,292,295,298,302,305,307,310,313,316,319,322,324,326,329],{"class":166,"line":282},8,[164,284,285],{"class":174},"  body",[164,287,288],{"class":170}," { ",[164,290,291],{"class":178},"font",[164,293,294],{"class":170},": ",[164,296,297],{"class":178},"15",[164,299,301],{"class":300},"sHUrx","px",[164,303,304],{"class":170},"\u002F",[164,306,94],{"class":178},[164,308,309],{"class":178}," system-ui",[164,311,312],{"class":170},", ",[164,314,315],{"class":178},"sans-serif",[164,317,318],{"class":170},"; ",[164,320,321],{"class":178},"margin",[164,323,294],{"class":170},[164,325,133],{"class":178},[164,327,328],{"class":300},"rem",[164,330,331],{"class":170},"; }\n",[164,333,335,338,340,343,345,348,350,353,355,358,360,362,365,367,370,372],{"class":166,"line":334},9,[164,336,337],{"class":178},"  .toolbar",[164,339,288],{"class":170},[164,341,342],{"class":178},"display",[164,344,294],{"class":170},[164,346,347],{"class":178},"flex",[164,349,318],{"class":170},[164,351,352],{"class":178},"gap",[164,354,294],{"class":170},[164,356,357],{"class":178},"0.5",[164,359,328],{"class":300},[164,361,318],{"class":170},[164,363,364],{"class":178},"margin-block-end",[164,366,294],{"class":170},[164,368,369],{"class":178},"1",[164,371,328],{"class":300},[164,373,331],{"class":170},[164,375,377,380,382,385,387,390,392,395,397,399,401,403,406,408,410,412,414,417,419,422,424,427,429,432,435,438,441,444,447,449,452],{"class":166,"line":376},10,[164,378,379],{"class":178},"  .visually-hidden",[164,381,288],{"class":170},[164,383,384],{"class":178},"position",[164,386,294],{"class":170},[164,388,389],{"class":178},"absolute",[164,391,318],{"class":170},[164,393,394],{"class":178},"inline-size",[164,396,294],{"class":170},[164,398,369],{"class":178},[164,400,301],{"class":300},[164,402,318],{"class":170},[164,404,405],{"class":178},"block-size",[164,407,294],{"class":170},[164,409,369],{"class":178},[164,411,301],{"class":300},[164,413,318],{"class":170},[164,415,416],{"class":178},"overflow",[164,418,294],{"class":170},[164,420,421],{"class":178},"hidden",[164,423,318],{"class":170},[164,425,426],{"class":178},"clip-path",[164,428,294],{"class":170},[164,430,431],{"class":178},"inset",[164,433,434],{"class":170},"(",[164,436,437],{"class":178},"50",[164,439,440],{"class":300},"%",[164,442,443],{"class":170},"); ",[164,445,446],{"class":178},"white-space",[164,448,294],{"class":170},[164,450,451],{"class":178},"nowrap",[164,453,331],{"class":170},[164,455,457,460,462,465,467,469,471,474,476,479,481,483,485,488,490,492,494,496,498,500,503,505,508,510],{"class":166,"line":456},11,[164,458,459],{"class":178},"  .tasks",[164,461,288],{"class":170},[164,463,464],{"class":178},"list-style",[164,466,294],{"class":170},[164,468,131],{"class":178},[164,470,318],{"class":170},[164,472,473],{"class":178},"padding",[164,475,294],{"class":170},[164,477,478],{"class":178},"0",[164,480,318],{"class":170},[164,482,342],{"class":178},[164,484,294],{"class":170},[164,486,487],{"class":178},"grid",[164,489,318],{"class":170},[164,491,352],{"class":178},[164,493,294],{"class":170},[164,495,357],{"class":178},[164,497,328],{"class":300},[164,499,318],{"class":170},[164,501,502],{"class":178},"max-inline-size",[164,504,294],{"class":170},[164,506,507],{"class":178},"28",[164,509,328],{"class":300},[164,511,331],{"class":170},[164,513,515],{"class":166,"line":514},12,[164,516,518],{"emptyLinePlaceholder":517},true,"\n",[164,520,522,525],{"class":166,"line":521},13,[164,523,524],{"class":178},"  .task",[164,526,527],{"class":170}," {\n",[164,529,531,534],{"class":166,"line":530},14,[164,532,533],{"class":178},"    view-transition-class",[164,535,536],{"class":170},": task;\n",[164,538,540,543,545,547],{"class":166,"line":539},15,[164,541,542],{"class":178},"    display",[164,544,294],{"class":170},[164,546,347],{"class":178},[164,548,549],{"class":170},";\n",[164,551,553,556,558,561],{"class":166,"line":552},16,[164,554,555],{"class":178},"    justify-content",[164,557,294],{"class":170},[164,559,560],{"class":178},"space-between",[164,562,549],{"class":170},[164,564,566,569,571,574,576,579,581],{"class":166,"line":565},17,[164,567,568],{"class":178},"    padding",[164,570,294],{"class":170},[164,572,573],{"class":178},"0.75",[164,575,328],{"class":300},[164,577,578],{"class":178}," 1",[164,580,328],{"class":300},[164,582,549],{"class":170},[164,584,586,589,591,593,595,598,601],{"class":166,"line":585},18,[164,587,588],{"class":178},"    border",[164,590,294],{"class":170},[164,592,369],{"class":178},[164,594,301],{"class":300},[164,596,597],{"class":178}," solid",[164,599,600],{"class":178}," #cbd5e1",[164,602,549],{"class":170},[164,604,606,609,611,614,616],{"class":166,"line":605},19,[164,607,608],{"class":178},"    border-radius",[164,610,294],{"class":170},[164,612,613],{"class":178},"8",[164,615,301],{"class":300},[164,617,549],{"class":170},[164,619,621,624,626,629],{"class":166,"line":620},20,[164,622,623],{"class":178},"    background",[164,625,294],{"class":170},[164,627,628],{"class":178},"#fff",[164,630,549],{"class":170},[164,632,634],{"class":166,"line":633},21,[164,635,636],{"class":170},"  }\n",[164,638,640],{"class":166,"line":639},22,[164,641,518],{"emptyLinePlaceholder":517},[164,643,645],{"class":166,"line":644},23,[164,646,648],{"class":647},"sLBg1","  \u002F* Moving items: a firm, short move. *\u002F\n",[164,650,652,655,658,661],{"class":166,"line":651},24,[164,653,654],{"class":170},"  ::view-transition-group(",[164,656,657],{"class":174},"*",[164,659,660],{"class":178},".task",[164,662,663],{"class":170},") {\n",[164,665,667,670,672,674,677],{"class":166,"line":666},25,[164,668,669],{"class":178},"    animation-duration",[164,671,294],{"class":170},[164,673,144],{"class":178},[164,675,676],{"class":300},"ms",[164,678,549],{"class":170},[164,680,682,685,687,690,692,694,696,698,700,702,704,706],{"class":166,"line":681},26,[164,683,684],{"class":178},"    animation-timing-function",[164,686,294],{"class":170},[164,688,689],{"class":178},"cubic-bezier",[164,691,434],{"class":170},[164,693,93],{"class":178},[164,695,312],{"class":170},[164,697,478],{"class":178},[164,699,312],{"class":170},[164,701,478],{"class":178},[164,703,312],{"class":170},[164,705,369],{"class":178},[164,707,708],{"class":170},");\n",[164,710,712],{"class":166,"line":711},27,[164,713,636],{"class":170},[164,715,717],{"class":166,"line":716},28,[164,718,518],{"emptyLinePlaceholder":517},[164,720,722],{"class":166,"line":721},29,[164,723,724],{"class":647},"  \u002F* Leaving and entering items: fade and shrink instead of crossfading in place. *\u002F\n",[164,726,728,731,733,735,738,741,743,746,749,751,753,756,759],{"class":166,"line":727},30,[164,729,730],{"class":170},"  ::view-transition-old(",[164,732,657],{"class":174},[164,734,660],{"class":178},[164,736,737],{"class":170},")",[164,739,740],{"class":178},":only-child",[164,742,288],{"class":170},[164,744,745],{"class":178},"animation",[164,747,748],{"class":170},": task-out ",[164,750,89],{"class":178},[164,752,676],{"class":300},[164,754,755],{"class":178}," ease-in",[164,757,758],{"class":178}," both",[164,760,331],{"class":170},[164,762,764,767,769,771,773,775,777,779,782,785,787,790,793,795,797],{"class":166,"line":763},31,[164,765,766],{"class":170},"  ::view-transition-new(",[164,768,657],{"class":174},[164,770,660],{"class":178},[164,772,737],{"class":170},[164,774,740],{"class":178},[164,776,288],{"class":170},[164,778,745],{"class":178},[164,780,781],{"class":170},": task-in ",[164,783,784],{"class":178},"220",[164,786,676],{"class":300},[164,788,789],{"class":178}," ease-out",[164,791,792],{"class":178}," 60",[164,794,676],{"class":300},[164,796,758],{"class":178},[164,798,331],{"class":170},[164,800,802],{"class":166,"line":801},32,[164,803,518],{"emptyLinePlaceholder":517},[164,805,807,810,814,816,819,822,825,827,829,831,834,836,839],{"class":166,"line":806},33,[164,808,809],{"class":300},"  @keyframes",[164,811,813],{"class":812},"soyes"," task-out",[164,815,288],{"class":170},[164,817,818],{"class":178},"to",[164,820,821],{"class":170},"   { ",[164,823,824],{"class":178},"opacity",[164,826,294],{"class":170},[164,828,478],{"class":178},[164,830,318],{"class":170},[164,832,833],{"class":178},"scale",[164,835,294],{"class":170},[164,837,838],{"class":178},"0.9",[164,840,841],{"class":170},"; } }\n",[164,843,845,847,850,853,856,858,860,862,864,866,868,870,872],{"class":166,"line":844},34,[164,846,809],{"class":300},[164,848,849],{"class":812}," task-in",[164,851,852],{"class":170},"  { ",[164,854,855],{"class":178},"from",[164,857,288],{"class":170},[164,859,824],{"class":178},[164,861,294],{"class":170},[164,863,478],{"class":178},[164,865,318],{"class":170},[164,867,833],{"class":178},[164,869,294],{"class":170},[164,871,838],{"class":178},[164,873,841],{"class":170},[164,875,877],{"class":166,"line":876},35,[164,878,518],{"emptyLinePlaceholder":517},[164,880,882,885],{"class":166,"line":881},36,[164,883,884],{"class":300},"  @media",[164,886,887],{"class":170}," (prefers-reduced-motion: reduce) {\n",[164,889,891],{"class":166,"line":890},37,[164,892,893],{"class":647},"    \u002F* Include the :only-child selectors: they are more specific\n",[164,895,897],{"class":166,"line":896},38,[164,898,899],{"class":647},"       than the plain ones and would otherwise keep their timings. *\u002F\n",[164,901,903,906,908,910],{"class":166,"line":902},39,[164,904,905],{"class":170},"    ::view-transition-group(",[164,907,657],{"class":174},[164,909,660],{"class":178},[164,911,912],{"class":170},"),\n",[164,914,916,919,921,923,925,927],{"class":166,"line":915},40,[164,917,918],{"class":170},"    ::view-transition-old(",[164,920,657],{"class":174},[164,922,660],{"class":178},[164,924,737],{"class":170},[164,926,740],{"class":178},[164,928,929],{"class":170},",\n",[164,931,933,936,938,940,942,944],{"class":166,"line":932},41,[164,934,935],{"class":170},"    ::view-transition-new(",[164,937,657],{"class":174},[164,939,660],{"class":178},[164,941,737],{"class":170},[164,943,740],{"class":178},[164,945,527],{"class":170},[164,947,949,952,954,956,958],{"class":166,"line":948},42,[164,950,951],{"class":178},"      animation-duration",[164,953,294],{"class":170},[164,955,369],{"class":178},[164,957,676],{"class":300},[164,959,549],{"class":170},[164,961,963,966,968,970,973],{"class":166,"line":962},43,[164,964,965],{"class":178},"      animation-delay",[164,967,294],{"class":170},[164,969,478],{"class":178},[164,971,972],{"class":300},"s",[164,974,549],{"class":170},[164,976,978],{"class":166,"line":977},44,[164,979,980],{"class":170},"    }\n",[164,982,984],{"class":166,"line":983},45,[164,985,636],{"class":170},[164,987,989,992,994],{"class":166,"line":988},46,[164,990,991],{"class":170},"\u003C\u002F",[164,993,277],{"class":174},[164,995,182],{"class":170},[164,997,999,1001,1003],{"class":166,"line":998},47,[164,1000,991],{"class":170},[164,1002,210],{"class":174},[164,1004,182],{"class":170},[164,1006,1008,1010,1013],{"class":166,"line":1007},48,[164,1009,188],{"class":170},[164,1011,1012],{"class":174},"body",[164,1014,182],{"class":170},[164,1016,1018,1021,1024,1027,1029,1032],{"class":166,"line":1017},49,[164,1019,1020],{"class":170},"  \u003C",[164,1022,1023],{"class":174},"div",[164,1025,1026],{"class":178}," class",[164,1028,196],{"class":170},[164,1030,1031],{"class":199},"\"toolbar\"",[164,1033,182],{"class":170},[164,1035,1037,1040,1043,1046,1048,1051,1054,1056,1059,1062,1064],{"class":166,"line":1036},50,[164,1038,1039],{"class":170},"    \u003C",[164,1041,1042],{"class":174},"button",[164,1044,1045],{"class":178}," type",[164,1047,196],{"class":170},[164,1049,1050],{"class":199},"\"button\"",[164,1052,1053],{"class":178}," data-sort",[164,1055,196],{"class":170},[164,1057,1058],{"class":199},"\"due\"",[164,1060,1061],{"class":170},">Sort by due date\u003C\u002F",[164,1063,1042],{"class":174},[164,1065,182],{"class":170},[164,1067,1069,1071,1073,1075,1077,1079,1081,1083,1086,1089,1091],{"class":166,"line":1068},51,[164,1070,1039],{"class":170},[164,1072,1042],{"class":174},[164,1074,1045],{"class":178},[164,1076,196],{"class":170},[164,1078,1050],{"class":199},[164,1080,1053],{"class":178},[164,1082,196],{"class":170},[164,1084,1085],{"class":199},"\"name\"",[164,1087,1088],{"class":170},">Sort by name\u003C\u002F",[164,1090,1042],{"class":174},[164,1092,182],{"class":170},[164,1094,1096,1098,1100,1102,1104,1106,1109,1112,1114],{"class":166,"line":1095},52,[164,1097,1039],{"class":170},[164,1099,1042],{"class":174},[164,1101,1045],{"class":178},[164,1103,196],{"class":170},[164,1105,1050],{"class":199},[164,1107,1108],{"class":178}," data-filter",[164,1110,1111],{"class":170},">Hide done\u003C\u002F",[164,1113,1042],{"class":174},[164,1115,182],{"class":170},[164,1117,1119,1122,1124],{"class":166,"line":1118},53,[164,1120,1121],{"class":170},"  \u003C\u002F",[164,1123,1023],{"class":174},[164,1125,182],{"class":170},[164,1127,1129,1131,1133,1135,1137,1140,1143,1145,1148,1151,1153,1156,1159,1161],{"class":166,"line":1128},54,[164,1130,1020],{"class":170},[164,1132,14],{"class":174},[164,1134,1026],{"class":178},[164,1136,196],{"class":170},[164,1138,1139],{"class":199},"\"visually-hidden\"",[164,1141,1142],{"class":178}," aria-live",[164,1144,196],{"class":170},[164,1146,1147],{"class":199},"\"polite\"",[164,1149,1150],{"class":178}," id",[164,1152,196],{"class":170},[164,1154,1155],{"class":199},"\"status\"",[164,1157,1158],{"class":170},">\u003C\u002F",[164,1160,14],{"class":174},[164,1162,182],{"class":170},[164,1164,1166,1168,1171,1173,1175,1178,1180,1182,1184,1186,1188],{"class":166,"line":1165},55,[164,1167,1020],{"class":170},[164,1169,1170],{"class":174},"ul",[164,1172,1026],{"class":178},[164,1174,196],{"class":170},[164,1176,1177],{"class":199},"\"tasks\"",[164,1179,1150],{"class":178},[164,1181,196],{"class":170},[164,1183,1177],{"class":199},[164,1185,1158],{"class":170},[164,1187,1170],{"class":174},[164,1189,182],{"class":170},[164,1191,1193],{"class":166,"line":1192},56,[164,1194,518],{"emptyLinePlaceholder":517},[164,1196,1198,1200,1203],{"class":166,"line":1197},57,[164,1199,1020],{"class":170},[164,1201,1202],{"class":174},"script",[164,1204,182],{"class":170},[164,1206,1208,1211,1214,1217],{"class":166,"line":1207},58,[164,1209,1210],{"class":300},"    const",[164,1212,1213],{"class":178}," tasks",[164,1215,1216],{"class":300}," =",[164,1218,1219],{"class":170}," [\n",[164,1221,1223,1226,1229,1232,1235,1238,1241,1244,1247],{"class":166,"line":1222},59,[164,1224,1225],{"class":170},"      { id: ",[164,1227,1228],{"class":199},"'t1'",[164,1230,1231],{"class":170},", name: ",[164,1233,1234],{"class":199},"'Write release notes'",[164,1236,1237],{"class":170},", due: ",[164,1239,1240],{"class":178},"3",[164,1242,1243],{"class":170},", done: ",[164,1245,1246],{"class":178},"false",[164,1248,1249],{"class":170}," },\n",[164,1251,1253,1255,1258,1260,1263,1266,1268,1270,1273],{"class":166,"line":1252},60,[164,1254,1225],{"class":170},[164,1256,1257],{"class":199},"'t2'",[164,1259,1231],{"class":170},[164,1261,1262],{"class":199},"'Fix login bug'",[164,1264,1265],{"class":170},",       due: ",[164,1267,369],{"class":178},[164,1269,1243],{"class":170},[164,1271,1272],{"class":178},"true",[164,1274,1275],{"class":170},"  },\n",[164,1277,1279,1281,1284,1286,1289,1291,1293,1295,1297],{"class":166,"line":1278},61,[164,1280,1225],{"class":170},[164,1282,1283],{"class":199},"'t3'",[164,1285,1231],{"class":170},[164,1287,1288],{"class":199},"'Review pull request'",[164,1290,1237],{"class":170},[164,1292,133],{"class":178},[164,1294,1243],{"class":170},[164,1296,1246],{"class":178},[164,1298,1249],{"class":170},[164,1300,1302],{"class":166,"line":1301},62,[164,1303,1304],{"class":170},"    ];\n",[164,1306,1308,1311,1314,1316,1319],{"class":166,"line":1307},63,[164,1309,1310],{"class":300},"    let",[164,1312,1313],{"class":170}," sortKey ",[164,1315,196],{"class":300},[164,1317,1318],{"class":199}," 'due'",[164,1320,549],{"class":170},[164,1322,1324,1326,1329,1331,1334],{"class":166,"line":1323},64,[164,1325,1310],{"class":300},[164,1327,1328],{"class":170}," hideDone ",[164,1330,196],{"class":300},[164,1332,1333],{"class":178}," false",[164,1335,549],{"class":170},[164,1337,1339],{"class":166,"line":1338},65,[164,1340,518],{"emptyLinePlaceholder":517},[164,1342,1344,1347,1351],{"class":166,"line":1343},66,[164,1345,1346],{"class":300},"    function",[164,1348,1350],{"class":1349},"sKwhi"," render",[164,1352,1353],{"class":170},"() {\n",[164,1355,1357,1360,1363,1365,1368,1371,1373,1376],{"class":166,"line":1356},67,[164,1358,1359],{"class":300},"      const",[164,1361,1362],{"class":178}," list",[164,1364,1216],{"class":300},[164,1366,1367],{"class":170}," document.",[164,1369,1370],{"class":1349},"getElementById",[164,1372,434],{"class":170},[164,1374,1375],{"class":199},"'tasks'",[164,1377,708],{"class":170},[164,1379,1381,1383,1386,1388],{"class":166,"line":1380},68,[164,1382,1359],{"class":300},[164,1384,1385],{"class":178}," shown",[164,1387,1216],{"class":300},[164,1389,1390],{"class":170}," tasks\n",[164,1392,1394,1397,1400,1403,1406,1409,1412,1415,1418,1421],{"class":166,"line":1393},69,[164,1395,1396],{"class":170},"        .",[164,1398,1399],{"class":1349},"filter",[164,1401,1402],{"class":170},"((",[164,1404,1405],{"class":812},"t",[164,1407,1408],{"class":170},") ",[164,1410,1411],{"class":300},"=>",[164,1413,1414],{"class":300}," !",[164,1416,1417],{"class":170},"(hideDone ",[164,1419,1420],{"class":300},"&&",[164,1422,1423],{"class":170}," t.done))\n",[164,1425,1427,1429,1432,1434,1436,1438,1441,1443,1445,1448,1451,1454,1457,1459,1462,1465,1467],{"class":166,"line":1426},70,[164,1428,1396],{"class":170},[164,1430,1431],{"class":1349},"sort",[164,1433,1402],{"class":170},[164,1435,23],{"class":812},[164,1437,312],{"class":170},[164,1439,1440],{"class":812},"b",[164,1442,1408],{"class":170},[164,1444,1411],{"class":300},[164,1446,1447],{"class":170}," (a[sortKey] ",[164,1449,1450],{"class":300},">",[164,1452,1453],{"class":170}," b[sortKey] ",[164,1455,1456],{"class":300},"?",[164,1458,578],{"class":178},[164,1460,1461],{"class":300}," :",[164,1463,1464],{"class":300}," -",[164,1466,369],{"class":178},[164,1468,1469],{"class":170},"));\n",[164,1471,1473,1476,1479,1481,1484,1487,1490,1492,1494,1496,1498],{"class":166,"line":1472},71,[164,1474,1475],{"class":170},"      list.",[164,1477,1478],{"class":1349},"replaceChildren",[164,1480,434],{"class":170},[164,1482,1483],{"class":300},"...",[164,1485,1486],{"class":170},"shown.",[164,1488,1489],{"class":1349},"map",[164,1491,1402],{"class":170},[164,1493,1405],{"class":812},[164,1495,1408],{"class":170},[164,1497,1411],{"class":300},[164,1499,527],{"class":170},[164,1501,1503,1506,1509,1511,1513,1516,1518,1521],{"class":166,"line":1502},72,[164,1504,1505],{"class":300},"        const",[164,1507,1508],{"class":178}," li",[164,1510,1216],{"class":300},[164,1512,1367],{"class":170},[164,1514,1515],{"class":1349},"createElement",[164,1517,434],{"class":170},[164,1519,1520],{"class":199},"'li'",[164,1522,708],{"class":170},[164,1524,1526,1529,1531,1534],{"class":166,"line":1525},73,[164,1527,1528],{"class":170},"        li.className ",[164,1530,196],{"class":300},[164,1532,1533],{"class":199}," 'task'",[164,1535,549],{"class":170},[164,1537,1539,1542,1544,1547,1549,1552,1555,1558,1561],{"class":166,"line":1538},74,[164,1540,1541],{"class":170},"        li.style.viewTransitionName ",[164,1543,196],{"class":300},[164,1545,1546],{"class":199}," `task-${",[164,1548,1405],{"class":170},[164,1550,1551],{"class":199},".",[164,1553,1554],{"class":170},"id",[164,1556,1557],{"class":199},"}`",[164,1559,1560],{"class":170},";   ",[164,1562,1563],{"class":647},"\u002F* unique per item *\u002F\n",[164,1565,1567,1570,1572],{"class":166,"line":1566},75,[164,1568,1569],{"class":170},"        li.textContent ",[164,1571,196],{"class":300},[164,1573,1574],{"class":170}," t.name;\n",[164,1576,1578,1581],{"class":166,"line":1577},76,[164,1579,1580],{"class":300},"        return",[164,1582,1583],{"class":170}," li;\n",[164,1585,1587],{"class":166,"line":1586},77,[164,1588,1589],{"class":170},"      }));\n",[164,1591,1593,1596,1598,1600,1603,1606],{"class":166,"line":1592},78,[164,1594,1595],{"class":170},"      document.",[164,1597,1370],{"class":1349},[164,1599,434],{"class":170},[164,1601,1602],{"class":199},"'status'",[164,1604,1605],{"class":170},").textContent ",[164,1607,1608],{"class":300},"=\n",[164,1610,1612,1615,1618,1620,1623,1626,1629,1632,1634,1637,1640,1642,1645],{"class":166,"line":1611},79,[164,1613,1614],{"class":199},"        `${",[164,1616,1617],{"class":170},"shown",[164,1619,1551],{"class":199},[164,1621,1622],{"class":178},"length",[164,1624,1625],{"class":199},"} tasks, sorted by ${",[164,1627,1628],{"class":170},"sortKey",[164,1630,1631],{"class":300}," ===",[164,1633,1318],{"class":199},[164,1635,1636],{"class":300}," ?",[164,1638,1639],{"class":199}," 'due date'",[164,1641,1461],{"class":300},[164,1643,1644],{"class":199}," 'name'}`",[164,1646,549],{"class":170},[164,1648,1650],{"class":166,"line":1649},80,[164,1651,980],{"class":170},[164,1653,1655],{"class":166,"line":1654},81,[164,1656,518],{"emptyLinePlaceholder":517},[164,1658,1660,1662,1665,1667,1670],{"class":166,"line":1659},82,[164,1661,1346],{"class":300},[164,1663,1664],{"class":1349}," update",[164,1666,434],{"class":170},[164,1668,1669],{"class":812},"change",[164,1671,663],{"class":170},[164,1673,1675,1678,1681,1684,1687,1689,1692,1695,1697,1700],{"class":166,"line":1674},83,[164,1676,1677],{"class":300},"      if",[164,1679,1680],{"class":170}," (",[164,1682,1683],{"class":300},"!",[164,1685,1686],{"class":170},"document.startViewTransition) { ",[164,1688,1669],{"class":1349},[164,1690,1691],{"class":170},"(); ",[164,1693,1694],{"class":1349},"render",[164,1696,1691],{"class":170},[164,1698,1699],{"class":300},"return",[164,1701,331],{"class":170},[164,1703,1705,1707,1709,1712,1714,1716,1718,1720,1722],{"class":166,"line":1704},84,[164,1706,1595],{"class":170},[164,1708,20],{"class":1349},[164,1710,1711],{"class":170},"(() ",[164,1713,1411],{"class":300},[164,1715,288],{"class":170},[164,1717,1669],{"class":1349},[164,1719,1691],{"class":170},[164,1721,1694],{"class":1349},[164,1723,1724],{"class":170},"(); });\n",[164,1726,1728],{"class":166,"line":1727},85,[164,1729,980],{"class":170},[164,1731,1733],{"class":166,"line":1732},86,[164,1734,518],{"emptyLinePlaceholder":517},[164,1736,1738,1741,1744,1746,1749,1752,1755,1757,1759,1761],{"class":166,"line":1737},87,[164,1739,1740],{"class":170},"    document.",[164,1742,1743],{"class":1349},"querySelectorAll",[164,1745,434],{"class":170},[164,1747,1748],{"class":199},"'[data-sort]'",[164,1750,1751],{"class":170},").",[164,1753,1754],{"class":1349},"forEach",[164,1756,1402],{"class":170},[164,1758,1440],{"class":812},[164,1760,1408],{"class":170},[164,1762,1763],{"class":300},"=>\n",[164,1765,1767,1770,1773,1775,1778,1781,1783,1785,1787,1789,1792,1794],{"class":166,"line":1766},88,[164,1768,1769],{"class":170},"      b.",[164,1771,1772],{"class":1349},"addEventListener",[164,1774,434],{"class":170},[164,1776,1777],{"class":199},"'click'",[164,1779,1780],{"class":170},", () ",[164,1782,1411],{"class":300},[164,1784,1664],{"class":1349},[164,1786,1711],{"class":170},[164,1788,1411],{"class":300},[164,1790,1791],{"class":170}," { sortKey ",[164,1793,196],{"class":300},[164,1795,1796],{"class":170}," b.dataset.sort; })));\n",[164,1798,1800,1802,1805,1807,1810,1812,1814,1816,1818,1820],{"class":166,"line":1799},89,[164,1801,1740],{"class":170},[164,1803,1804],{"class":1349},"querySelector",[164,1806,434],{"class":170},[164,1808,1809],{"class":199},"'[data-filter]'",[164,1811,1751],{"class":170},[164,1813,1772],{"class":1349},[164,1815,434],{"class":170},[164,1817,1777],{"class":199},[164,1819,1780],{"class":170},[164,1821,1763],{"class":300},[164,1823,1825,1828,1830,1832,1835,1837,1839],{"class":166,"line":1824},90,[164,1826,1827],{"class":1349},"      update",[164,1829,1711],{"class":170},[164,1831,1411],{"class":300},[164,1833,1834],{"class":170}," { hideDone ",[164,1836,196],{"class":300},[164,1838,1414],{"class":300},[164,1840,1841],{"class":170},"hideDone; }));\n",[164,1843,1845],{"class":166,"line":1844},91,[164,1846,518],{"emptyLinePlaceholder":517},[164,1848,1850,1853],{"class":166,"line":1849},92,[164,1851,1852],{"class":1349},"    render",[164,1854,1855],{"class":170},"();\n",[164,1857,1859,1861,1863],{"class":166,"line":1858},93,[164,1860,1121],{"class":170},[164,1862,1202],{"class":174},[164,1864,182],{"class":170},[164,1866,1868,1870,1872],{"class":166,"line":1867},94,[164,1869,991],{"class":170},[164,1871,1012],{"class":174},[164,1873,182],{"class":170},[164,1875,1877,1879,1881],{"class":166,"line":1876},95,[164,1878,991],{"class":170},[164,1880,159],{"class":174},[164,1882,182],{"class":170},[14,1884,1885,1887],{},[18,1886,1478],{}," throws away every list item and creates new ones on each render. It does not matter: pairing is by name, so each task still animates from its old row to its new one. That is what makes the technique framework-friendly — whatever a renderer does to the DOM, the transition only sees names and boxes.",[34,1889,1891],{"id":1890},"the-key-technique-one-unique-name-per-item-one-class-for-all","The key technique: one unique name per item, one class for all",[14,1893,1894,1895,1897,1898,312,1901,1904,1905,1907],{},"The rule that makes list transitions work is that every item needs a distinct ",[18,1896,43],{},", derived from stable data such as a record ID. Deriving it from the index (",[18,1899,1900],{},"task-0",[18,1902,1903],{},"task-1",") is a subtle mistake: after sorting, ",[18,1906,1900],{}," is a different task, so the browser morphs whatever is now first from the old first row's box, which looks like items swapping content rather than moving.",[50,1909,57,1912,57,1915,57,1918,57,1921,57,1928,57,1931,57,1936,57,1940,57,1947,57,1951,57,1954,57,1956,57,1961,57,1965,57,1968,57,1970,57,1973,57,1977,57,1980,57,1982,57,1985,57,1987,57,1990,57,1992,57,1995,57,1997],{"viewBox":1910,"role":53,"ariaLabel":1911,"xmlns":55,"style":56},"0 0 720 270","Comparison: names from IDs make items travel to new rows; names from indexes make rows stay put while their content crossfades",[59,1913,1914],{},"Name by identity, never by position",[63,1916,1917],{},"Left panel, names from record IDs: the item named task-t2 travels from row two to row one, so movement follows the data. Right panel, names from indexes: the name task-0 stays in row one before and after, so the box stays still while the text inside crossfades from one task to another, which hides the reorder.",[67,1919,1920],{"textAnchor":69,"x":70,"y":71,"style":72},"Stable names make the motion truthful",[85,1922],{"x":1923,"y":437,"width":1924,"height":1925,"rx":1926,"fill":131,"stroke":132,"strokeWidth":94,"opacity":1927},"30","315","190","10","0.6",[85,1929],{"x":1930,"y":437,"width":1924,"height":1925,"rx":1926,"fill":131,"stroke":132,"strokeWidth":94,"opacity":1927},"375",[67,1932,1935],{"textAnchor":69,"x":1933,"y":1934,"style":78},"187","76","name from ID",[67,1937,1939],{"textAnchor":69,"x":1938,"y":1934,"style":78},"532","name from index",[85,1941],{"x":1942,"y":1943,"width":1944,"height":1945,"rx":91,"fill":132,"opacity":1946},"55","96","110","36","0.12",[85,1948],{"x":1942,"y":1949,"width":1944,"height":1945,"rx":91,"fill":92,"opacity":1950},"146","0.4",[85,1952],{"x":1953,"y":1943,"width":1944,"height":1945,"rx":91,"fill":92,"opacity":1950},"210",[85,1955],{"x":1953,"y":1949,"width":1944,"height":1945,"rx":91,"fill":132,"opacity":1946},[67,1957,1960],{"textAnchor":69,"x":1944,"y":1958,"style":1959},"119","text-anchor:middle;fill:currentColor;font:11px ui-monospace,monospace","task-t1",[67,1962,1964],{"textAnchor":69,"x":1944,"y":1963,"style":1959},"169","task-t2",[67,1966,1964],{"textAnchor":69,"x":1967,"y":1958,"style":1959},"265",[67,1969,1960],{"textAnchor":69,"x":1967,"y":1963,"style":1959},[128,1971],{"d":1972,"stroke":92,"strokeWidth":133,"fill":131},"M165 164 L210 114",[67,1974,1976],{"textAnchor":69,"x":1933,"y":1975,"style":145},"218","items travel",[85,1978],{"x":1979,"y":1943,"width":1944,"height":1945,"rx":91,"fill":92,"opacity":1950},"400",[85,1981],{"x":1979,"y":1949,"width":1944,"height":1945,"rx":91,"fill":132,"opacity":1946},[85,1983],{"x":1984,"y":1943,"width":1944,"height":1945,"rx":91,"fill":92,"opacity":1950},"555",[85,1986],{"x":1984,"y":1949,"width":1944,"height":1945,"rx":91,"fill":132,"opacity":1946},[67,1988,1900],{"textAnchor":69,"x":1989,"y":1958,"style":1959},"455",[67,1991,1903],{"textAnchor":69,"x":1989,"y":1963,"style":1959},[67,1993,1900],{"textAnchor":69,"x":1994,"y":1958,"style":1959},"610",[67,1996,1903],{"textAnchor":69,"x":1994,"y":1963,"style":1959},[67,1998,1999],{"textAnchor":69,"x":1938,"y":1975,"style":145},"rows stay, text crossfades",[14,2001,2002,2003,2007,2008,2011,2012,2014],{},"The class does the opposite job: it is shared, so one rule styles every item's group. ",[23,2004,2006],{"href":2005},"\u002Fcss-only-micro-interactions-animations\u002Fview-transitions-for-css-developers\u002Fview-transition-types-and-classes\u002F","View Transition Types and Classes"," explains the ",[18,2009,2010],{},"*.task"," selector and the ",[18,2013,740],{}," trick used for entering and leaving items.",[34,2016,2018],{"id":2017},"handling-long-lists","Handling long lists",[14,2020,2021],{},"Each named element is captured as a separate image and animated as a separate group. For a list of twenty, that is unnoticeable. For a list of five hundred, capturing and compositing every row costs real time at the start of the transition, and most of those rows are off screen where nobody sees them move.",[14,2023,2024,2025,2028],{},"The practical answer is to name only what is visible. Before starting the transition, give names to items that intersect the viewport (an ",[18,2026,2027],{},"IntersectionObserver"," already tracking visibility makes this cheap) and clear names from the rest. Off-screen items then change instantly, which no one notices, while visible items animate. Items moving from off screen into view simply fade in, which is a reasonable approximation.",[50,2030,57,2033,57,2036,57,2039,57,2042,57,2047,57,2050,57,2053,57,2056,57,2058,57,2061,57,2064,57,2067,57,2071,57,2077,57,2082,57,2088],{"viewBox":2031,"role":53,"ariaLabel":2032,"xmlns":55,"style":56},"0 0 720 260","A long list with only the rows inside the viewport named; rows above and below have no name and update instantly",[59,2034,2035],{},"Name only the visible rows",[63,2037,2038],{},"A tall list of rows with a viewport frame around the middle five rows. Rows inside the frame carry view-transition names and animate. Rows above and below the frame have no names and update without animation, keeping the capture cheap.",[67,2040,2041],{"textAnchor":69,"x":70,"y":71,"style":72},"Animate what the user can see",[85,2043],{"x":2044,"y":90,"width":2044,"height":2045,"rx":141,"fill":132,"opacity":2046},"240","18","0.1",[85,2048],{"x":2044,"y":2049,"width":2044,"height":2045,"rx":141,"fill":132,"opacity":2046},"68",[85,2051],{"x":2044,"y":2052,"width":2044,"height":2045,"rx":141,"fill":92,"opacity":1950},"98",[85,2054],{"x":2044,"y":2055,"width":2044,"height":2045,"rx":141,"fill":92,"opacity":1950},"122",[85,2057],{"x":2044,"y":1949,"width":2044,"height":2045,"rx":141,"fill":92,"opacity":1950},[85,2059],{"x":2044,"y":2060,"width":2044,"height":2045,"rx":141,"fill":92,"opacity":1950},"170",[85,2062],{"x":2044,"y":2063,"width":2044,"height":2045,"rx":141,"fill":132,"opacity":2046},"200",[85,2065],{"x":2044,"y":2066,"width":2044,"height":2045,"rx":141,"fill":132,"opacity":2046},"224",[128,2068],{"d":2069,"fill":131,"stroke":132,"strokeWidth":2070},"M225 92 H495 V194 H225 Z","2.5",[67,2072,2076],{"textAnchor":2073,"x":2074,"y":1949,"style":2075},"start","510","text-anchor:start;fill:currentColor;font:600 12px sans-serif","viewport: named",[67,2078,2081],{"textAnchor":2073,"x":2074,"y":2079,"style":2080},"164","text-anchor:start;fill:currentColor;font:12px sans-serif","rows animate",[67,2083,2087],{"textAnchor":2084,"x":1953,"y":2085,"style":2086},"end","70","text-anchor:end;fill:currentColor;font:12px sans-serif","no name: instant",[67,2089,2087],{"textAnchor":2084,"x":1953,"y":2090,"style":2086},"226",[14,2092,2093],{},"Two more habits keep list transitions quick. Avoid naming elements inside each item as well as the item itself unless they genuinely need independent motion, since every name doubles the capture count. And keep the transition short — under 300 milliseconds for moves — so rapid successive sorts do not queue behind each other. Starting a new transition while one is running skips the old one to its end state, so fast clicking stays responsive.",[34,2095,2097],{"id":2096},"variation-drag-to-reorder","Variation: drag-to-reorder",[14,2099,2100,2101,2105],{},"For drag and drop, the pointer already provides continuous motion for the dragged item, so only the ",[2102,2103,2104],"em",{},"other"," items need to animate as they make room. Remove the dragged item's name while it is being dragged — otherwise the browser would try to morph it from its pre-drag position — and start a transition each time the drop target changes. Each transition animates the neighbours sliding up or down by one row. Because a new transition skips the previous one to its end, a fast drag across many rows stays responsive: neighbours jump to their latest positions rather than queueing a backlog of slides. On drop, restore the dragged item's name so the next sort includes it.",[14,2107,2108],{},"Keyboard reordering deserves the same animation. A \"move up\" and \"move down\" button pair, or arrow keys on a focused item, can call the same update function, giving keyboard users the same visual confirmation that the item moved and where it landed.",[34,2110,2112],{"id":2111},"accessibility","Accessibility",[14,2114,2115,2116,2119,2120,2122],{},"The transition is visual only. The accessibility tree reflects the new order the moment the update callback runs, and screen readers do not perceive the motion. That makes an explicit announcement important: the ",[18,2117,2118],{},"aria-live=\"polite\""," status element in the implementation states the new count and sort order after each change. Keyboard focus also deserves care — if the focused item moves, focus stays on it in the DOM, but if your renderer replaces nodes, as ",[18,2121,1478],{}," does, focus is lost. Restore it to the equivalent new node after rendering. For users who prefer reduced motion, the implementation shortens every animation to a millisecond, which still lets the browser apply the final state cleanly.",[34,2124,2126],{"id":2125},"browser-support","Browser support",[14,2128,2129,2130,2132,2133,2136,2137,2140,2141,2144],{},"Same-document view transitions and ",[18,2131,43],{}," are supported in Chrome and Edge 111+, Firefox 144+ and Safari 18+. ",[18,2134,2135],{},"view-transition-class"," arrived after the core API; browsers that support transitions but not classes run the default crossfade and morph for each item, which still conveys the reorder. Browsers without view transitions take the ",[18,2138,2139],{},"if (!document.startViewTransition)"," path and update instantly. ",[18,2142,2143],{},"prefers-reduced-motion"," is supported in Chrome 74+, Edge 79+, Firefox 63+ and Safari 10.1+.",[34,2146,2148],{"id":2147},"faq","FAQ",[14,2150,2151,2155,2156,2158,2159,2162],{},[2152,2153,2154],"strong",{},"How do view transitions animate a sorted list?","\nGive every item a unique ",[18,2157,43],{},". When the list is re-rendered inside ",[18,2160,2161],{},"document.startViewTransition()",", the browser captures each item's old and new position and animates it between them, the same way the FLIP technique does by hand.",[14,2164,2165,2168],{},[2152,2166,2167],{},"Do I need to keep the same DOM nodes when reordering?","\nNo. Items are paired by name, not by node identity. A framework can throw away the whole list and render a new one; as long as each item's name is the same before and after, it animates from its old position to its new one.",[14,2170,2171,2174],{},[2152,2172,2173],{},"How many items can a list transition handle?","\nEach named item is captured as its own image and animated as its own group, so cost grows with the count. Dozens of items are fine; for hundreds, name only the items in or near the viewport and let the rest change instantly.",[14,2176,2177,2180],{},[2152,2178,2179],{},"Does a reordering animation affect screen reader users?","\nThe transition is purely visual; the accessibility tree updates immediately with the new order. Announce the change, for example with a live region stating the new sort order, because the visual motion is not conveyed to assistive technology.",[34,2182,2184],{"id":2183},"related","Related",[1170,2186,2187,2193,2198,2205],{},[2188,2189,2190,2192],"li",{},[23,2191,26],{"href":25}," — the parent guide.",[2188,2194,2195,2197],{},[23,2196,2006],{"href":2005}," — styling many items with one rule.",[2188,2199,2200,2204],{},[23,2201,2203],{"href":2202},"\u002Fcss-only-micro-interactions-animations\u002Fview-transitions-for-css-developers\u002Fview-transition-names-shared-elements\u002F","view-transition-name and Shared Elements"," — the uniqueness constraint.",[2188,2206,2207,2211],{},[23,2208,2210],{"href":2209},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns\u002Fstaggered-list-animations-with-custom-properties\u002F","Staggered List Animations With Custom Properties"," — entrance motion for lists.",[277,2213,2214],{},"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 .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 .soyes, html code.shiki .soyes{--shiki-default:#702C00;--shiki-dark:#FFB757}html pre.shiki code .sKwhi, html code.shiki .sKwhi{--shiki-default:#622CBC;--shiki-dark:#DBB7FF}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":160,"searchDepth":185,"depth":185,"links":2216},[2217,2218,2219,2220,2221,2222,2223,2224,2225],{"id":36,"depth":185,"text":37},{"id":149,"depth":185,"text":150},{"id":1890,"depth":185,"text":1891},{"id":2017,"depth":185,"text":2018},{"id":2096,"depth":185,"text":2097},{"id":2111,"depth":185,"text":2112},{"id":2125,"depth":185,"text":2126},{"id":2147,"depth":185,"text":2148},{"id":2183,"depth":185,"text":2184},"Animate sorting, filtering and reordering lists with view transitions: a unique name per item, shared class styling, and keeping long lists fast and accessible.","md",{"pageTitle":5,"datePublished":2229,"dateModified":2229,"faq":2230},"2026-09-18",[2231,2233,2235,2237],{"q":2154,"a":2232},"Give every item a unique view-transition-name. When the list is re-rendered inside document.startViewTransition(), the browser captures each item's old and new position and animates it between them, the same way the FLIP technique does by hand.",{"q":2167,"a":2234},"No. Items are paired by name, not by node identity. A framework can throw away the whole list and render a new one; as long as each item's name is the same before and after, it animates from its old position to its new one.",{"q":2173,"a":2236},"Each named item is captured as its own image and animated as its own group, so cost grows with the count. Dozens of items are fine; for hundreds, name only the items in or near the viewport and let the rest change instantly.",{"q":2179,"a":2238},"The transition is purely visual; the accessibility tree updates immediately with the new order. Announce the change, for example with a live region stating the new sort order, because the visual motion is not conveyed to assistive technology.","\u002Fcss-only-micro-interactions-animations\u002Fview-transitions-for-css-developers\u002Fview-transitions-for-list-reordering",{"title":5,"description":2226},"css-only-micro-interactions-animations\u002Fview-transitions-for-css-developers\u002Fview-transitions-for-list-reordering\u002Findex","CDa7JVPpBHR7Ah2Wl8B7HeOFv0UNpffDlmk_iVadM6k",[2244,2247,2250,2253,2256,2259,2262,2265,2268,2271,2274,2277,2280,2283,2286,2289,2292,2295,2298,2301,2304,2307,2310,2313,2316,2319,2322,2325,2328,2331,2334,2337,2340,2343,2346,2349,2352,2355,2358,2361,2364,2367,2370,2373,2376,2379,2382,2385,2388,2391,2394,2397,2400,2403,2406,2409,2412,2415,2418,2421,2424,2427,2430,2433,2436,2439,2442,2445,2448,2451,2454,2457,2460,2463,2466,2469,2472,2475,2478,2481,2484,2487,2490,2493,2496,2499,2502,2505,2508,2511,2514,2516,2517,2520,2522,2525,2528,2531,2534,2537,2540,2543,2546,2549,2552,2555,2558,2561,2564,2567,2570,2573,2576,2579,2582,2585,2588,2591,2594,2597,2600,2603,2606,2609,2612,2615,2618,2621,2624,2627,2630,2633,2636,2639,2642,2645,2648,2651,2654,2657,2660,2663,2666,2669,2672,2675,2678,2681,2684,2687,2690,2693,2696,2699,2702,2705,2708,2711,2714,2717,2720,2723,2726,2729,2732,2735,2738,2741,2744,2747,2750,2753,2756,2759,2762,2765,2768,2771,2774,2777,2780,2783,2786,2789,2792,2795,2798],{"path":2245,"title":2246},"\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":2248,"title":2249},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations\u002Fflashing-content-and-seizure-thresholds","Flashing Content and Seizure Thresholds",{"path":2251,"title":2252},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations\u002Fforced-colors-mode-and-animations","Forced Colors Mode and Animations",{"path":2254,"title":2255},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations","Accessibility in CSS Animations: Patterns, Specs & Best Practices",{"path":2257,"title":2258},"\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":2260,"title":2261},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations\u002Fprefers-reduced-motion-recipes","prefers-reduced-motion Recipes: A Reduction for Every Common Effect",{"path":2263,"title":2264},"\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":2266,"title":2267},"\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":2269,"title":2270},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations\u002Fvestibular-safe-animation-patterns","Vestibular-Safe Animation Patterns: Why Some Motion Makes People Sick",{"path":2272,"title":2273},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations\u002Fwcag-motion-success-criteria","WCAG Motion Success Criteria: What Each One Actually Requires",{"path":2275,"title":2276},"\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":2278,"title":2279},"\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":2281,"title":2282},"\u002Fcss-only-micro-interactions-animations\u002Fclip-path-and-mask-animations","Clip-Path & Mask Animations: Animating Visibility Instead of Position",{"path":2284,"title":2285},"\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":2287,"title":2288},"\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":2290,"title":2291},"\u002Fcss-only-micro-interactions-animations\u002Fcolor-and-theme-transitions\u002Fanimating-gradients","Animating CSS Gradients: Smooth Colour Motion Without Jumps",{"path":2293,"title":2294},"\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":2296,"title":2297},"\u002Fcss-only-micro-interactions-animations\u002Fcolor-and-theme-transitions","Color & Theme Transitions: Colour as Part of the Motion System",{"path":2299,"title":2300},"\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":2302,"title":2303},"\u002Fcss-only-micro-interactions-animations\u002Fcolor-and-theme-transitions\u002Fsmooth-theme-switching-transitions","Smooth Theme Switching: Crossfades, Circular Reveals and No Flash",{"path":2305,"title":2306},"\u002Fcss-only-micro-interactions-animations\u002Fcontainer-aware-motion\u002Fcontainer-query-hover-affordances","Container Query Hover Affordances: When Narrow Means Persistent, Not Hidden",{"path":2308,"title":2309},"\u002Fcss-only-micro-interactions-animations\u002Fcontainer-aware-motion","Container-Aware Motion: Animation Sized by the Space a Component Actually Has",{"path":2311,"title":2312},"\u002Fcss-only-micro-interactions-animations\u002Fcontainer-aware-motion\u002Flayout-change-animations-at-container-breakpoints","Animating Changes at Container Breakpoints",{"path":2314,"title":2315},"\u002Fcss-only-micro-interactions-animations\u002Fcontainer-aware-motion\u002Fmotion-driven-by-container-style-queries","Motion Driven by Container Style Queries",{"path":2317,"title":2318},"\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":2320,"title":2321},"\u002Fcss-only-micro-interactions-animations\u002Fcontainer-aware-motion\u002Fsuppressing-motion-in-small-containers","Suppressing Motion in Small Containers: Deliberately Animating Nothing",{"path":2323,"title":2324},"\u002Fcss-only-micro-interactions-animations\u002Fcss-animation-vs-web-animations-api\u002Fcontrolling-css-animations-from-javascript","Controlling CSS Animations From JavaScript",{"path":2326,"title":2327},"\u002Fcss-only-micro-interactions-animations\u002Fcss-animation-vs-web-animations-api","CSS Animation vs the Web Animations API: A Decision Guide",{"path":2329,"title":2330},"\u002Fcss-only-micro-interactions-animations\u002Fcss-animation-vs-web-animations-api\u002Fwaapi-vs-css-for-interruptible-ui","Interruptible UI: CSS Transitions vs WAAPI",{"path":2332,"title":2333},"\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":2335,"title":2336},"\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":2338,"title":2339},"\u002Fcss-only-micro-interactions-animations\u002Fcss-custom-properties-architecture\u002Fcustom-property-fallbacks-and-invalid-values","Custom Property Fallbacks and Invalid Values",{"path":2341,"title":2342},"\u002Fcss-only-micro-interactions-animations\u002Fcss-custom-properties-architecture\u002Ffluid-spacing-tokens-driving-transition-durations","Fluid Spacing Tokens That Drive Transition Durations",{"path":2344,"title":2345},"\u002Fcss-only-micro-interactions-animations\u002Fcss-custom-properties-architecture","CSS Custom Properties Architecture: Scalable Design Systems & Dynamic UI",{"path":2347,"title":2348},"\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":2350,"title":2351},"\u002Fcss-only-micro-interactions-animations\u002Fcss-custom-properties-architecture\u002Fscoping-custom-properties-to-components","Scoping Custom Properties to Components",{"path":2353,"title":2354},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Fcss-transition-timing-functions","CSS Transition Timing Functions: ease, cubic-bezier(), steps() and linear()",{"path":2356,"title":2357},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals","CSS Transition Fundamentals: Architecture, Performance & Patterns",{"path":2359,"title":2360},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Finterrupted-and-reversing-transitions","Interrupted and Reversing Transitions: What Happens Mid-Flight",{"path":2362,"title":2363},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Fstarting-style-entry-animations","@starting-style: Animating an Element's Very First Style Change",{"path":2365,"title":2366},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Ftransition-delay-choreography","Choreographing Motion With transition-delay",{"path":2368,"title":2369},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Ftransition-shorthand-and-multiple-properties","The transition Shorthand and Multiple Properties",{"path":2371,"title":2372},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Ftransitioning-display-with-allow-discrete","Transitioning display with transition-behavior: allow-discrete and @starting-style",{"path":2374,"title":2375},"\u002Fcss-only-micro-interactions-animations\u002Fdialog-and-popover-animations\u002Fanimating-dialog-open-and-close","Animating \u003Cdialog> Open and Close: Both Directions, No Library",{"path":2377,"title":2378},"\u002Fcss-only-micro-interactions-animations\u002Fdialog-and-popover-animations\u002Fbackdrop-animations","Animating ::backdrop: Fades and Blurs Behind Dialogs and Popovers",{"path":2380,"title":2381},"\u002Fcss-only-micro-interactions-animations\u002Fdialog-and-popover-animations","Dialog & Popover Animations: Motion for the Top Layer",{"path":2383,"title":2384},"\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":2386,"title":2387},"\u002Fcss-only-micro-interactions-animations\u002Fdialog-and-popover-animations\u002Fpopover-entry-and-exit-transitions","Popover Menus That Animate From Their Anchor",{"path":2389,"title":2390},"\u002Fcss-only-micro-interactions-animations\u002Feasing-and-motion-design\u002Fchoosing-animation-durations","Choosing Animation Durations: How Long Motion Should Last",{"path":2392,"title":2393},"\u002Fcss-only-micro-interactions-animations\u002Feasing-and-motion-design\u002Fcubic-bezier-overshoot-and-anticipation","Overshoot and Anticipation With cubic-bezier(): Motion With Character",{"path":2395,"title":2396},"\u002Fcss-only-micro-interactions-animations\u002Feasing-and-motion-design\u002Fentry-vs-exit-easing","Entry vs Exit Easing: Different Curves for Arriving and Leaving",{"path":2398,"title":2399},"\u002Fcss-only-micro-interactions-animations\u002Feasing-and-motion-design","Easing & Motion Design: Making CSS Motion Feel Intentional",{"path":2401,"title":2402},"\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":2404,"title":2405},"\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":2407,"title":2408},"\u002Fcss-only-micro-interactions-animations\u002Fhover-focus-state-design\u002Faccessible-css-only-tooltips","Accessible CSS-Only Tooltips and Hover Cards With  and ",{"path":2410,"title":2411},"\u002Fcss-only-micro-interactions-animations\u002Fhover-focus-state-design\u002Fbutton-press-and-active-states","Button Press and  States",{"path":2413,"title":2414},"\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":2416,"title":2417},"\u002Fcss-only-micro-interactions-animations\u002Fhover-focus-state-design\u002Ffocus-within-form-patterns"," Form Patterns: Styling a Group From the Field Inside It",{"path":2419,"title":2420},"\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":2422,"title":2423},"\u002Fcss-only-micro-interactions-animations\u002Fhover-focus-state-design","Hover & Focus State Design: Spec-Compliant Patterns for Modern UIs",{"path":2425,"title":2426},"\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":2428,"title":2429},"\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":2431,"title":2432},"\u002Fcss-only-micro-interactions-animations","CSS-Only Micro-Interactions & Animations: Architecture, Performance & Implementation",{"path":2434,"title":2435},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns\u002Fanimation-composition-and-stacking","Stacking Animations With animation-composition",{"path":2437,"title":2438},"\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":2440,"title":2441},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns\u002Fcontainer-query-triggered-keyframe-animations","Container-Query-Triggered Keyframe Animations: Animate Differently per Available Space",{"path":2443,"title":2444},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns\u002Fcss-only-accordions-and-disclosure","CSS-Only Accordions and Disclosure Widgets with details and summary",{"path":2446,"title":2447},"\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":2449,"title":2450},"\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":2452,"title":2453},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns","Keyframe Animation Patterns: Spec-Compliant Architectures for Modern UIs",{"path":2455,"title":2456},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns\u002Fmulti-step-keyframes-and-per-keyframe-easing","Multi-Step Keyframes and Per-Keyframe Easing",{"path":2458,"title":2459},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns\u002Fstaggered-list-animations-with-custom-properties","Staggered List Animations Using --i Index Custom Properties",{"path":2461,"title":2462},"\u002Fcss-only-micro-interactions-animations\u002Fperformance-gpu-acceleration\u002Fanimating-box-shadow-and-filters-cheaply","Animating box-shadow and Filters Cheaply",{"path":2464,"title":2465},"\u002Fcss-only-micro-interactions-animations\u002Fperformance-gpu-acceleration\u002Fcontain-property-for-animation-performance","The contain Property for Animation Performance",{"path":2467,"title":2468},"\u002Fcss-only-micro-interactions-animations\u002Fperformance-gpu-acceleration\u002Fcss-triggers-layout-paint-composite","Layout, Paint and Composite: What Triggers What",{"path":2470,"title":2471},"\u002Fcss-only-micro-interactions-animations\u002Fperformance-gpu-acceleration","Performance & GPU Acceleration in CSS: A Developer’s Blueprint",{"path":2473,"title":2474},"\u002Fcss-only-micro-interactions-animations\u002Fperformance-gpu-acceleration\u002Foptimizing-css-animations-for-60fps","Optimizing CSS Animations for 60fps: Budgeting the Frame",{"path":2476,"title":2477},"\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":2479,"title":2480},"\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":2482,"title":2483},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations","Scroll-Driven Animations: Binding Motion to Scroll Position in Pure CSS",{"path":2485,"title":2486},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations\u002Fscroll-driven-animation-fallbacks","Shipping Scroll-Driven Animations Without Breaking Anything",{"path":2488,"title":2489},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations\u002Fscroll-driven-parallax-effects","Scroll-Driven Parallax Effects in CSS",{"path":2491,"title":2492},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations\u002Fscroll-progress-bar-without-javascript","A Reading Progress Bar Driven by scroll(root)",{"path":2494,"title":2495},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations\u002Fscroll-triggered-reveal-animations","Reveal-on-Scroll with view() and animation-range",{"path":2497,"title":2498},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations\u002Ftimeline-scope-for-cross-element-animations","timeline-scope for Cross-Element Animations",{"path":2500,"title":2501},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations\u002Fview-timeline-and-animation-range","View Timelines and animation-range",{"path":2503,"title":2504},"\u002Fcss-only-micro-interactions-animations\u002Fview-transitions-for-css-developers\u002Fcross-document-view-transitions","Cross-Document View Transitions",{"path":2506,"title":2507},"\u002Fcss-only-micro-interactions-animations\u002Fview-transitions-for-css-developers","View Transitions for CSS Developers: the Pseudo-Element Tree, Snapshots, and Named Elements",{"path":2509,"title":2510},"\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":2512,"title":2513},"\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":2515,"title":2006},"\u002Fcss-only-micro-interactions-animations\u002Fview-transitions-for-css-developers\u002Fview-transition-types-and-classes",{"path":2239,"title":5},{"path":2518,"title":2519},"\u002Fcss-only-micro-interactions-animations\u002Fview-transitions-for-css-developers\u002Fview-transitions-with-reduced-motion","Honouring prefers-reduced-motion in View Transitions",{"path":304,"title":2521},"Modern CSS Layouts & Micro-Interactions",{"path":2523,"title":2524},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays\u002Fanchor-positioned-tooltips","Anchor-Positioned Tooltips: Tethering, Flipping, and Getting the Semantics Right",{"path":2526,"title":2527},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays\u002Fanchor-positioning-fallbacks","Anchor Positioning Fallbacks: A Graceful Floor for Older Browser Versions",{"path":2529,"title":2530},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays\u002Fanchor-size-for-matching-widths","anchor-size(): Overlays That Match Their Trigger's Size",{"path":2532,"title":2533},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays","CSS Anchor Positioning and Overlays: Tethering Elements Without JavaScript",{"path":2535,"title":2536},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays\u002Fpopover-attribute-and-css-styling","The popover Attribute: Top-Layer Overlays With No JavaScript",{"path":2538,"title":2539},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays\u002Fpopover-light-dismiss-and-stacking","Popover Light Dismiss, Nesting and Stacking",{"path":2541,"title":2542},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays\u002Fposition-area-grid-explained","position-area: The Anchor Placement Grid",{"path":2544,"title":2545},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks\u002Fcontainer-query-polyfill-tradeoffs","Container Query Polyfills: What They Cost and When to Skip Them",{"path":2547,"title":2548},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks\u002Ffeature-detection-with-supports","Feature Detection with @supports: Syntax, Semantics, and the Traps",{"path":2550,"title":2551},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks\u002Fhandling-container-query-fallbacks-for-older-browsers","Handling Container Query Fallbacks for Older Browsers",{"path":2553,"title":2554},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks","Container Query Fallbacks: Spec-Compliant CSS Strategies for Legacy Browsers",{"path":2556,"title":2557},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks\u002Fintrinsic-layout-fallbacks-without-queries","Intrinsic Layout Fallbacks: Baselines That Adapt Without Any Query",{"path":2559,"title":2560},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks\u002Ftesting-fallbacks-without-old-browsers","Testing CSS Fallbacks Without an Old Browser",{"path":2562,"title":2563},"\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":2565,"title":2566},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-syntax-basics\u002Fcontainer-query-range-and-logic-operators","Container Query Range Syntax and Logic Operators",{"path":2568,"title":2569},"\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":2571,"title":2572},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-syntax-basics\u002Fcontainer-type-size-vs-inline-size","Choosing container-type: inline-size, size, or normal",{"path":2574,"title":2575},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-syntax-basics\u002Fcontainer-vs-media-queries-comparison","Container vs Media Queries: Choosing the Right Reference Box",{"path":2577,"title":2578},"\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":2580,"title":2581},"\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":2583,"title":2584},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-syntax-basics","Container Query Syntax Basics",{"path":2586,"title":2587},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-syntax-basics\u002Fnesting-and-naming-container-queries","Nesting and Naming Container Queries: Targeting the Right Ancestor",{"path":2589,"title":2590},"\u002Fmastering-container-queries-responsive-layouts\u002Fcss-grid-and-subgrid-layouts\u002Fauto-fit-minmax-responsive-grids","Responsive Grids with repeat(auto-fit, minmax())",{"path":2592,"title":2593},"\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":2595,"title":2596},"\u002Fmastering-container-queries-responsive-layouts\u002Fcss-grid-and-subgrid-layouts\u002Fgrid-auto-flow-dense-packing","grid-auto-flow: dense for Packed Layouts",{"path":2598,"title":2599},"\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":2601,"title":2602},"\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":2604,"title":2605},"\u002Fmastering-container-queries-responsive-layouts\u002Fcss-grid-and-subgrid-layouts","CSS Grid and Subgrid Layouts for Responsive Interfaces",{"path":2607,"title":2608},"\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":2610,"title":2611},"\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":2613,"title":2614},"\u002Fmastering-container-queries-responsive-layouts\u002Fcss-grid-and-subgrid-layouts\u002Fsubgrid-vs-nested-grid","Subgrid vs an Independently Nested Grid",{"path":2616,"title":2617},"\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":2619,"title":2620},"\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":2622,"title":2623},"\u002Fmastering-container-queries-responsive-layouts\u002Fflexbox-layout-patterns\u002Fflex-grow-and-flex-shrink-explained","flex-grow and flex-shrink Explained",{"path":2625,"title":2626},"\u002Fmastering-container-queries-responsive-layouts\u002Fflexbox-layout-patterns\u002Fflex-wrap-intrinsic-responsive-rows","Breakpoint-Free Responsive Rows With flex-wrap and flex-basis",{"path":2628,"title":2629},"\u002Fmastering-container-queries-responsive-layouts\u002Fflexbox-layout-patterns\u002Fflexbox-gap-and-spacing","Flexbox gap vs Margins: Spacing Items Without Edge Hacks",{"path":2631,"title":2632},"\u002Fmastering-container-queries-responsive-layouts\u002Fflexbox-layout-patterns","Flexbox Layout Patterns: One-Dimensional Layout for Real Components",{"path":2634,"title":2635},"\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":2637,"title":2638},"\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":2640,"title":2641},"\u002Fmastering-container-queries-responsive-layouts\u002Ffluid-typography-with-clamp\u002Fdebugging-clamp-values","Debugging clamp(): Values That Are Ignored, Stuck or Never Fluid",{"path":2643,"title":2644},"\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":2646,"title":2647},"\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":2649,"title":2650},"\u002Fmastering-container-queries-responsive-layouts\u002Ffluid-typography-with-clamp\u002Ffluid-type-accessibility-and-zoom","Fluid Type, Accessibility and Zoom: The vw-Only Trap",{"path":2652,"title":2653},"\u002Fmastering-container-queries-responsive-layouts\u002Ffluid-typography-with-clamp\u002Ffluid-typography-without-javascript","Fluid Typography Without JavaScript: A Precision CSS Reference",{"path":2655,"title":2656},"\u002Fmastering-container-queries-responsive-layouts\u002Ffluid-typography-with-clamp","Fluid Typography with clamp(): A Practical Guide for Modern CSS",{"path":2658,"title":2659},"\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":2661,"title":2662},"\u002Fmastering-container-queries-responsive-layouts","Mastering Container Queries & Responsive Layouts",{"path":2664,"title":2665},"\u002Fmastering-container-queries-responsive-layouts\u002Fintrinsic-sizing-techniques\u002Faspect-ratio-for-responsive-media","Using aspect-ratio for Responsive Media and Preventing Layout Shift",{"path":2667,"title":2668},"\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":2670,"title":2671},"\u002Fmastering-container-queries-responsive-layouts\u002Fintrinsic-sizing-techniques","Intrinsic Sizing Techniques: Modern CSS Layouts for Responsive UI",{"path":2673,"title":2674},"\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":2676,"title":2677},"\u002Fmastering-container-queries-responsive-layouts\u002Fintrinsic-sizing-techniques\u002Fmin-max-fit-content-explained","min-content, max-content, and fit-content() Explained",{"path":2679,"title":2680},"\u002Fmastering-container-queries-responsive-layouts\u002Fintrinsic-sizing-techniques\u002Fobject-fit-and-object-position","object-fit and object-position: Images That Fit Any Box",{"path":2682,"title":2683},"\u002Fmastering-container-queries-responsive-layouts\u002Fintrinsic-sizing-techniques\u002Fpreventing-flex-and-grid-overflow","The min-width: auto Trap in Flex and Grid Layouts",{"path":2685,"title":2686},"\u002Fmastering-container-queries-responsive-layouts\u002Fmodern-css-reset-strategies\u002Fcascade-layers-for-reset-and-tokens","Cascade Layers for Reset and Design Tokens",{"path":2688,"title":2689},"\u002Fmastering-container-queries-responsive-layouts\u002Fmodern-css-reset-strategies\u002Fcascade-layers-vs-specificity-hacks","Cascade Layers vs Specificity Hacks: Ordering Instead of Escalating",{"path":2691,"title":2692},"\u002Fmastering-container-queries-responsive-layouts\u002Fmodern-css-reset-strategies\u002Fcss-scope-for-component-styles","@scope for Component Styles: Short Selectors That Cannot Leak",{"path":2694,"title":2695},"\u002Fmastering-container-queries-responsive-layouts\u002Fmodern-css-reset-strategies","Modern CSS Reset Strategies: A Spec-Compliant Foundation",{"path":2697,"title":2698},"\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":2700,"title":2701},"\u002Fmastering-container-queries-responsive-layouts\u002Fmodern-css-reset-strategies\u002Fwriting-a-minimal-modern-reset","Writing a Minimal Modern CSS Reset: Every Line Justified",{"path":2703,"title":2704},"\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":2706,"title":2707},"\u002Fmastering-container-queries-responsive-layouts\u002Fparent-aware-layouts-with-has\u002Fempty-and-loading-states-with-has","Empty and Loading States With ()",{"path":2709,"title":2710},"\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":2712,"title":2713},"\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":2715,"title":2716},"\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":2718,"title":2719},"\u002Fmastering-container-queries-responsive-layouts\u002Fparent-aware-layouts-with-has","Parent-Aware Layouts With :has(): Letting Containers React to Their Contents",{"path":2721,"title":2722},"\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":2724,"title":2725},"\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":2727,"title":2728},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Fcontainer-query-data-tables","Container Query Data Tables: Reflowing Tables to Cards",{"path":2730,"title":2731},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Fcontainer-query-sidebar-layouts","Container Query Sidebar Layouts That Travel Between Contexts",{"path":2733,"title":2734},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns","Responsive Component Patterns: Architecture & Implementation",{"path":2736,"title":2737},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Fresponsive-forms-with-container-queries","Responsive Forms with Container Queries: Reflow Without Losing the Wiring",{"path":2739,"title":2740},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Fresponsive-hero-sections-with-container-queries","Responsive Hero Sections With Container Queries",{"path":2742,"title":2743},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Fresponsive-navigation-without-media-queries","Responsive Navigation Without Media Queries Using Container Queries",{"path":2745,"title":2746},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Fresponsive-pricing-tables","Responsive Pricing Tables: Aligned Features, a Clear Recommendation, Any Width",{"path":2748,"title":2749},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Ftabs-that-become-accordions","Tabs That Become an Accordion: One Component, Two Layouts",{"path":2751,"title":2752},"\u002Fmastering-container-queries-responsive-layouts\u002Fscroll-snap-and-overflow-layouts\u002Fcss-only-carousel-with-scroll-snap","A CSS-Only Carousel With Scroll Snap",{"path":2754,"title":2755},"\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":2757,"title":2758},"\u002Fmastering-container-queries-responsive-layouts\u002Fscroll-snap-and-overflow-layouts","Scroll Snap & Overflow Layouts: Designing Components That Scroll on Purpose",{"path":2760,"title":2761},"\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":2763,"title":2764},"\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":2766,"title":2767},"\u002Fmastering-container-queries-responsive-layouts\u002Fstyle-queries-and-container-state\u002Fcombining-size-and-style-queries","Combining Size and Style Container Queries",{"path":2769,"title":2770},"\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":2772,"title":2773},"\u002Fmastering-container-queries-responsive-layouts\u002Fstyle-queries-and-container-state","Style Queries and Container State: Token-Driven Component Variants",{"path":2775,"title":2776},"\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":2778,"title":2779},"\u002Fmastering-container-queries-responsive-layouts\u002Fstyle-queries-and-container-state\u002Fstyle-query-component-variants","Component Variants With Style Queries: One Token, Many Looks",{"path":2781,"title":2782},"\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":2784,"title":2785},"\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":2787,"title":2788},"\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":2790,"title":2791},"\u002Fmastering-container-queries-responsive-layouts\u002Fviewport-units-and-mobile-layout","Viewport Units & Mobile Layout: Designing for the Screen You Actually Get",{"path":2793,"title":2794},"\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":2796,"title":2797},"\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":2799,"title":2800},"\u002Fmastering-container-queries-responsive-layouts\u002Fviewport-units-and-mobile-layout\u002Fvirtual-keyboard-and-interactive-widget","Layouts That Survive the Virtual Keyboard",1789717744838]