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