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