[{"data":1,"prerenderedAt":2570},["ShallowReactive",2],{"page-\u002Fcss-only-micro-interactions-animations\u002Feasing-and-motion-design\u002Fsteps-easing-for-sprite-animations\u002F":3,"content-all-pages":2005,"live-demo:easing-steps-effects":2564},{"id":4,"title":5,"body":6,"description":1984,"extension":1985,"meta":1986,"navigation":457,"path":2001,"seo":2002,"stem":2003,"__hash__":2004},"content\u002Fcss-only-micro-interactions-animations\u002Feasing-and-motion-design\u002Fsteps-easing-for-sprite-animations\u002Findex.md","steps() Easing: Sprite Sheets, Typewriters and Other Frame-by-Frame Effects",{"type":7,"value":8,"toc":1973},"minimark",[9,18,39,44,51,61,65,175,226,243,247,250,254,1434,1464,1468,1474,1564,1570,1574,1585,1593,1597,1602,1815,1826,1830,1861,1865,1887,1903,1919,1938,1942,1970],[10,11,13,17],"h1",{"id":12},"steps-easing-sprite-sheets-typewriters-and-other-frame-by-frame-effects",[14,15,16],"code",{},"steps()"," Easing: Sprite Sheets, Typewriters and Other Frame-by-Frame Effects",[19,20,21,22,24,25,27,28,33,34,38],"p",{},"Every other timing function in CSS is about smoothness: getting from A to B without visible jumps. ",[14,23,16],{}," does the opposite on purpose. It divides an animation into a fixed number of equal intervals and holds a constant value within each, producing discrete jumps — exactly what frame-by-frame animation needs. A sprite sheet of a walking character, text that types itself one character at a time, a ticking second hand, a blinking caret, a segmented progress meter: all of these are ",[14,26,16],{}," effects. This page explains the step positions that trip people up and builds each of those effects. It belongs to ",[29,30,32],"a",{"href":31},"\u002Fcss-only-micro-interactions-animations\u002Feasing-and-motion-design\u002F","Easing & Motion Design"," in the ",[29,35,37],{"href":36},"\u002Fcss-only-micro-interactions-animations\u002F","CSS-Only Micro-Interactions & Animations"," guide.",[40,41,43],"h2",{"id":42},"why-discrete-timing-exists","Why discrete timing exists",[19,45,46,47,50],{},"Some motion is not supposed to be continuous. A sprite sheet contains a fixed set of drawn frames; interpolating the ",[14,48,49],{},"background-position"," between frames would slide the sheet and show half of one drawing and half of the next. A typewriter reveals whole characters, never three-fifths of a letter. A clock's second hand, in the classic quartz style, jumps once per second. In each case the right output is a value from a small set, held until the next change.",[19,52,53,56,57,60],{},[14,54,55],{},"steps(n, \u003Cposition>)"," maps progress onto ",[14,58,59],{},"n"," flat plateaus. The position keyword decides where each jump happens relative to its interval, and getting it wrong is the source of almost every \"my animation skips a frame\" bug.",[40,62,64],{"id":63},"the-step-positions","The step positions",[66,67,73,74,73,78,73,82,73,90,73,99,73,106,73,112,73,117,73,121,73,124,73,128,73,131,73,135,73,138,73,142,73,145,73,149,73,152,73,156,73,159,73,166,73,171],"svg",{"viewBox":68,"role":69,"ariaLabel":70,"xmlns":71,"style":72},"0 0 720 330","img","Staircase plots of steps(4) with jump-start, jump-end, jump-both and jump-none","http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg","width:100%;height:auto;max-width:720px;margin:2rem 0","\n  ",[75,76,77],"title",{},"Four ways to place four steps",[79,80,81],"desc",{},"Four staircases of output against time. jump-end starts at zero and reaches one only at the end. jump-start jumps at the very beginning and holds one for the final interval. jump-both has five levels including both zero and one as brief plateaus. jump-none has four levels starting at zero and ending at one, each held for a quarter of the time.",[83,84,89],"text",{"textAnchor":85,"x":86,"y":87,"style":88},"middle","360","26","text-anchor:middle;fill:currentColor;font:700 17px sans-serif","steps(4, position)",[91,92],"line",{"x1":93,"y1":94,"x2":95,"y2":94,"stroke":96,"strokeWidth":97,"opacity":98},"40","150","190","currentColor","1.5","0.5",[100,101],"polyline",{"points":102,"fill":103,"stroke":104,"strokeWidth":105},"40,150 77,150 77,125 115,125 115,100 152,100 152,75 190,75 190,50","none","#7aa2ff","3.5",[83,107,111],{"textAnchor":85,"x":108,"y":109,"style":110},"115","180","text-anchor:middle;fill:currentColor;font:600 12px ui-monospace,monospace","jump-end",[83,113,116],{"textAnchor":85,"x":108,"y":114,"style":115},"198","text-anchor:middle;fill:currentColor;font:11px sans-serif","(default) 0 first, 1 at end",[91,118],{"x1":119,"y1":94,"x2":120,"y2":94,"stroke":96,"strokeWidth":97,"opacity":98},"220","370",[100,122],{"points":123,"fill":103,"stroke":104,"strokeWidth":105},"220,150 220,125 257,125 257,100 295,100 295,75 332,75 332,50 370,50",[83,125,127],{"textAnchor":85,"x":126,"y":109,"style":110},"295","jump-start",[83,129,130],{"textAnchor":85,"x":126,"y":114,"style":115},"skips 0, holds 1",[91,132],{"x1":133,"y1":94,"x2":134,"y2":94,"stroke":96,"strokeWidth":97,"opacity":98},"400","550",[100,136],{"points":137,"fill":103,"stroke":104,"strokeWidth":105},"400,150 400,130 437,130 437,110 475,110 475,90 512,90 512,70 550,70 550,50",[83,139,141],{"textAnchor":85,"x":140,"y":109,"style":110},"475","jump-both",[83,143,144],{"textAnchor":85,"x":140,"y":114,"style":115},"neither end held",[91,146],{"x1":147,"y1":94,"x2":148,"y2":94,"stroke":96,"strokeWidth":97,"opacity":98},"580","700",[100,150],{"points":151,"fill":103,"stroke":104,"strokeWidth":105},"580,150 610,150 610,117 640,117 640,83 670,83 670,50 700,50",[83,153,155],{"textAnchor":85,"x":154,"y":109,"style":110},"640","jump-none",[83,157,158],{"textAnchor":85,"x":154,"y":114,"style":115},"both ends held",[160,161],"rect",{"x":93,"y":162,"width":163,"height":164,"rx":165,"fill":103,"stroke":96,"strokeWidth":97,"opacity":98},"224","660","80","10",[83,167,170],{"textAnchor":85,"x":120,"y":168,"style":169},"252","text-anchor:middle;fill:currentColor;font:13px sans-serif","Sprite sheet, animated to \"one frame past the last\": steps(N) with jump-end.",[83,172,174],{"textAnchor":85,"x":120,"y":173,"style":169},"278","Frames listed as start and end values: steps(N) with jump-none.",[176,177,178,191,202,215],"ul",{},[179,180,181,186,187,190],"li",{},[182,183,184],"strong",{},[14,185,111],{}," (default, also ",[14,188,189],{},"end","): the value changes at the end of each interval. The first plateau shows the start value; the end value is reached only at the final instant, which with infinite iteration means it is never displayed.",[179,192,193,197,198,201],{},[182,194,195],{},[14,196,127],{}," (also ",[14,199,200],{},"start","): the value changes at the start of each interval. The start value is never shown; the end value is held for the last interval.",[179,203,204,208,209,211,212,214],{},[182,205,206],{},[14,207,155],{},": neither end jumps; the start value is held for the first interval and the end value for the last. With ",[14,210,59],{}," steps there are exactly ",[14,213,59],{}," visible values including both ends.",[179,216,217,221,222,225],{},[182,218,219],{},[14,220,141],{},": jumps at both ends, producing ",[14,223,224],{},"n + 1"," levels, with neither the start nor the end value held for a full interval.",[19,227,228,231,232,235,236,231,239,242],{},[14,229,230],{},"step-start"," and ",[14,233,234],{},"step-end"," are keyword shorthands for ",[14,237,238],{},"steps(1, jump-start)",[14,240,241],{},"steps(1, jump-end)",": a single instant change at the beginning or end.",[40,244,246],{"id":245},"the-complete-implementation","The complete implementation",[19,248,249],{},"The page below builds three effects: a sprite-sheet walk cycle, a typewriter line with a blinking caret, and a ticking clock hand. The sprite sheet is drawn with a repeating gradient so the example is self-contained; in production it would be a real image.",[251,252],"live-demo",{"name":253},"easing-steps-effects",[255,256,261],"pre",{"className":257,"code":258,"language":259,"meta":260,"style":260},"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>steps() effects\u003C\u002Ftitle>\n\u003Cstyle>\n  body { font: 16px\u002F1.5 system-ui, sans-serif; margin: 1.5rem; display: grid; gap: 1.5rem; }\n\n  \u002F* 1. SPRITE SHEET: 8 frames of 48px each, laid out horizontally (384px).\n     Animate background-position from frame 1 to just past frame 8 (-384px)\n     with steps(8): jump-end shows frames 1..8 and never the empty \"frame 9\". *\u002F\n  .sprite {\n    width: 48px;\n    height: 48px;\n    background-image: repeating-linear-gradient(\n      to right,\n      #4f46e5 0 12px, #818cf8 12px 24px, #c7d2fe 24px 36px, #e0e7ff 36px 48px\n    );\n    background-size: 384px 48px;\n    animation: walk 0.8s steps(8) infinite;\n  }\n  @keyframes walk {\n    to { background-position: -384px 0; }\n  }\n\n  \u002F* 2. TYPEWRITER: width grows one character at a time. The ch unit is\n     the width of \"0\", so with a monospace font 1ch is one character. *\u002F\n  .typed {\n    font: 1.25rem\u002F1.4 ui-monospace, monospace;\n    width: 23ch;                     \u002F* final width = 23 characters *\u002F\n    white-space: nowrap;\n    overflow: hidden;\n    border-inline-end: 2px solid currentColor;   \u002F* the caret *\u002F\n    animation:\n      type 2.3s steps(23) 0.4s both,\n      caret 0.8s step-end infinite;\n  }\n  @keyframes type { from { width: 0; } }\n  @keyframes caret { 50% { border-color: transparent; } }\n\n  \u002F* 3. TICKING HAND: 60 discrete positions per minute. *\u002F\n  .dial {\n    position: relative;\n    width: 6rem;\n    height: 6rem;\n    border: 2px solid currentColor;\n    border-radius: 50%;\n  }\n  .hand {\n    position: absolute;\n    left: calc(50% - 1px);\n    top: 10%;\n    width: 2px;\n    height: 40%;\n    background: #dc2626;\n    transform-origin: 50% 100%;\n    animation: tick 60s steps(60) infinite;\n  }\n  @keyframes tick { to { rotate: 1turn; } }\n\n  @media (prefers-reduced-motion: reduce) {\n    .sprite, .hand { animation: none; }\n    .typed { animation: none; border-inline-end-color: transparent; }\n  }\n\u003C\u002Fstyle>\n\u003C\u002Fhead>\n\u003Cbody>\n  \u003Cdiv class=\"sprite\" role=\"img\" aria-label=\"Walking character\">\u003C\u002Fdiv>\n  \u003Cp class=\"typed\">Deploy finished in 42s.\u003C\u002Fp>\n  \u003Cdiv class=\"dial\" role=\"img\" aria-label=\"Seconds dial\">\u003Cspan class=\"hand\">\u003C\u002Fspan>\u003C\u002Fdiv>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n","html","",[14,262,263,282,302,312,330,355,369,379,452,459,466,472,478,487,503,517,531,543,600,606,625,657,663,675,696,701,706,712,718,726,754,773,786,799,824,832,861,879,884,910,935,940,946,954,967,981,994,1012,1028,1033,1041,1053,1081,1095,1108,1121,1134,1153,1178,1183,1211,1216,1225,1247,1272,1277,1287,1296,1306,1346,1367,1416,1425],{"__ignoreMap":260},[264,265,267,271,275,279],"span",{"class":91,"line":266},1,[264,268,270],{"class":269},"suds8","\u003C!",[264,272,274],{"class":273},"sne4z","doctype",[264,276,278],{"class":277},"s-5SL"," html",[264,280,281],{"class":269},">\n",[264,283,285,288,290,293,296,300],{"class":91,"line":284},2,[264,286,287],{"class":269},"\u003C",[264,289,259],{"class":273},[264,291,292],{"class":277}," lang",[264,294,295],{"class":269},"=",[264,297,299],{"class":298},"sT6z2","\"en\"",[264,301,281],{"class":269},[264,303,305,307,310],{"class":91,"line":304},3,[264,306,287],{"class":269},[264,308,309],{"class":273},"head",[264,311,281],{"class":269},[264,313,315,317,320,323,325,328],{"class":91,"line":314},4,[264,316,287],{"class":269},[264,318,319],{"class":273},"meta",[264,321,322],{"class":277}," charset",[264,324,295],{"class":269},[264,326,327],{"class":298},"\"utf-8\"",[264,329,281],{"class":269},[264,331,333,335,337,340,342,345,348,350,353],{"class":91,"line":332},5,[264,334,287],{"class":269},[264,336,319],{"class":273},[264,338,339],{"class":277}," name",[264,341,295],{"class":269},[264,343,344],{"class":298},"\"viewport\"",[264,346,347],{"class":277}," content",[264,349,295],{"class":269},[264,351,352],{"class":298},"\"width=device-width, initial-scale=1\"",[264,354,281],{"class":269},[264,356,358,360,362,365,367],{"class":91,"line":357},6,[264,359,287],{"class":269},[264,361,75],{"class":273},[264,363,364],{"class":269},">steps() effects\u003C\u002F",[264,366,75],{"class":273},[264,368,281],{"class":269},[264,370,372,374,377],{"class":91,"line":371},7,[264,373,287],{"class":269},[264,375,376],{"class":273},"style",[264,378,281],{"class":269},[264,380,382,385,388,391,394,397,401,404,406,409,412,415,418,421,423,425,428,430,433,435,438,440,443,445,447,449],{"class":91,"line":381},8,[264,383,384],{"class":273},"  body",[264,386,387],{"class":269}," { ",[264,389,390],{"class":277},"font",[264,392,393],{"class":269},": ",[264,395,396],{"class":277},"16",[264,398,400],{"class":399},"sHUrx","px",[264,402,403],{"class":269},"\u002F",[264,405,97],{"class":277},[264,407,408],{"class":277}," system-ui",[264,410,411],{"class":269},", ",[264,413,414],{"class":277},"sans-serif",[264,416,417],{"class":269},"; ",[264,419,420],{"class":277},"margin",[264,422,393],{"class":269},[264,424,97],{"class":277},[264,426,427],{"class":399},"rem",[264,429,417],{"class":269},[264,431,432],{"class":277},"display",[264,434,393],{"class":269},[264,436,437],{"class":277},"grid",[264,439,417],{"class":269},[264,441,442],{"class":277},"gap",[264,444,393],{"class":269},[264,446,97],{"class":277},[264,448,427],{"class":399},[264,450,451],{"class":269},"; }\n",[264,453,455],{"class":91,"line":454},9,[264,456,458],{"emptyLinePlaceholder":457},true,"\n",[264,460,462],{"class":91,"line":461},10,[264,463,465],{"class":464},"sLBg1","  \u002F* 1. SPRITE SHEET: 8 frames of 48px each, laid out horizontally (384px).\n",[264,467,469],{"class":91,"line":468},11,[264,470,471],{"class":464},"     Animate background-position from frame 1 to just past frame 8 (-384px)\n",[264,473,475],{"class":91,"line":474},12,[264,476,477],{"class":464},"     with steps(8): jump-end shows frames 1..8 and never the empty \"frame 9\". *\u002F\n",[264,479,481,484],{"class":91,"line":480},13,[264,482,483],{"class":277},"  .sprite",[264,485,486],{"class":269}," {\n",[264,488,490,493,495,498,500],{"class":91,"line":489},14,[264,491,492],{"class":277},"    width",[264,494,393],{"class":269},[264,496,497],{"class":277},"48",[264,499,400],{"class":399},[264,501,502],{"class":269},";\n",[264,504,506,509,511,513,515],{"class":91,"line":505},15,[264,507,508],{"class":277},"    height",[264,510,393],{"class":269},[264,512,497],{"class":277},[264,514,400],{"class":399},[264,516,502],{"class":269},[264,518,520,523,525,528],{"class":91,"line":519},16,[264,521,522],{"class":277},"    background-image",[264,524,393],{"class":269},[264,526,527],{"class":277},"repeating-linear-gradient",[264,529,530],{"class":269},"(\n",[264,532,534,537,540],{"class":91,"line":533},17,[264,535,536],{"class":399},"      to",[264,538,539],{"class":277}," right",[264,541,542],{"class":269},",\n",[264,544,546,549,552,555,557,559,562,564,566,569,571,573,576,578,580,583,585,587,590,592,594,597],{"class":91,"line":545},18,[264,547,548],{"class":277},"      #4f46e5",[264,550,551],{"class":277}," 0",[264,553,554],{"class":277}," 12",[264,556,400],{"class":399},[264,558,411],{"class":269},[264,560,561],{"class":277},"#818cf8",[264,563,554],{"class":277},[264,565,400],{"class":399},[264,567,568],{"class":277}," 24",[264,570,400],{"class":399},[264,572,411],{"class":269},[264,574,575],{"class":277},"#c7d2fe",[264,577,568],{"class":277},[264,579,400],{"class":399},[264,581,582],{"class":277}," 36",[264,584,400],{"class":399},[264,586,411],{"class":269},[264,588,589],{"class":277},"#e0e7ff",[264,591,582],{"class":277},[264,593,400],{"class":399},[264,595,596],{"class":277}," 48",[264,598,599],{"class":399},"px\n",[264,601,603],{"class":91,"line":602},19,[264,604,605],{"class":269},"    );\n",[264,607,609,612,614,617,619,621,623],{"class":91,"line":608},20,[264,610,611],{"class":277},"    background-size",[264,613,393],{"class":269},[264,615,616],{"class":277},"384",[264,618,400],{"class":399},[264,620,596],{"class":277},[264,622,400],{"class":399},[264,624,502],{"class":269},[264,626,628,631,634,637,640,643,646,649,652,655],{"class":91,"line":627},21,[264,629,630],{"class":277},"    animation",[264,632,633],{"class":269},": walk ",[264,635,636],{"class":277},"0.8",[264,638,639],{"class":399},"s",[264,641,642],{"class":277}," steps",[264,644,645],{"class":269},"(",[264,647,648],{"class":277},"8",[264,650,651],{"class":269},") ",[264,653,654],{"class":277},"infinite",[264,656,502],{"class":269},[264,658,660],{"class":91,"line":659},22,[264,661,662],{"class":269},"  }\n",[264,664,666,669,673],{"class":91,"line":665},23,[264,667,668],{"class":399},"  @keyframes",[264,670,672],{"class":671},"soyes"," walk",[264,674,486],{"class":269},[264,676,678,681,683,685,687,690,692,694],{"class":91,"line":677},24,[264,679,680],{"class":277},"    to",[264,682,387],{"class":269},[264,684,49],{"class":277},[264,686,393],{"class":269},[264,688,689],{"class":277},"-384",[264,691,400],{"class":399},[264,693,551],{"class":277},[264,695,451],{"class":269},[264,697,699],{"class":91,"line":698},25,[264,700,662],{"class":269},[264,702,704],{"class":91,"line":703},26,[264,705,458],{"emptyLinePlaceholder":457},[264,707,709],{"class":91,"line":708},27,[264,710,711],{"class":464},"  \u002F* 2. TYPEWRITER: width grows one character at a time. The ch unit is\n",[264,713,715],{"class":91,"line":714},28,[264,716,717],{"class":464},"     the width of \"0\", so with a monospace font 1ch is one character. *\u002F\n",[264,719,721,724],{"class":91,"line":720},29,[264,722,723],{"class":277},"  .typed",[264,725,486],{"class":269},[264,727,729,732,734,737,739,741,744,747,749,752],{"class":91,"line":728},30,[264,730,731],{"class":277},"    font",[264,733,393],{"class":269},[264,735,736],{"class":277},"1.25",[264,738,427],{"class":399},[264,740,403],{"class":269},[264,742,743],{"class":277},"1.4",[264,745,746],{"class":277}," ui-monospace",[264,748,411],{"class":269},[264,750,751],{"class":277},"monospace",[264,753,502],{"class":269},[264,755,757,759,761,764,767,770],{"class":91,"line":756},31,[264,758,492],{"class":277},[264,760,393],{"class":269},[264,762,763],{"class":277},"23",[264,765,766],{"class":399},"ch",[264,768,769],{"class":269},";                     ",[264,771,772],{"class":464},"\u002F* final width = 23 characters *\u002F\n",[264,774,776,779,781,784],{"class":91,"line":775},32,[264,777,778],{"class":277},"    white-space",[264,780,393],{"class":269},[264,782,783],{"class":277},"nowrap",[264,785,502],{"class":269},[264,787,789,792,794,797],{"class":91,"line":788},33,[264,790,791],{"class":277},"    overflow",[264,793,393],{"class":269},[264,795,796],{"class":277},"hidden",[264,798,502],{"class":269},[264,800,802,805,807,810,812,815,818,821],{"class":91,"line":801},34,[264,803,804],{"class":277},"    border-inline-end",[264,806,393],{"class":269},[264,808,809],{"class":277},"2",[264,811,400],{"class":399},[264,813,814],{"class":277}," solid",[264,816,817],{"class":277}," currentColor",[264,819,820],{"class":269},";   ",[264,822,823],{"class":464},"\u002F* the caret *\u002F\n",[264,825,827,829],{"class":91,"line":826},35,[264,828,630],{"class":277},[264,830,831],{"class":269},":\n",[264,833,835,838,841,843,845,847,849,851,854,856,859],{"class":91,"line":834},36,[264,836,837],{"class":269},"      type ",[264,839,840],{"class":277},"2.3",[264,842,639],{"class":399},[264,844,642],{"class":277},[264,846,645],{"class":269},[264,848,763],{"class":277},[264,850,651],{"class":269},[264,852,853],{"class":277},"0.4",[264,855,639],{"class":399},[264,857,858],{"class":277}," both",[264,860,542],{"class":269},[264,862,864,867,869,871,874,877],{"class":91,"line":863},37,[264,865,866],{"class":269},"      caret ",[264,868,636],{"class":277},[264,870,639],{"class":399},[264,872,873],{"class":277}," step-end",[264,875,876],{"class":277}," infinite",[264,878,502],{"class":269},[264,880,882],{"class":91,"line":881},38,[264,883,662],{"class":269},[264,885,887,889,892,894,897,899,902,904,907],{"class":91,"line":886},39,[264,888,668],{"class":399},[264,890,891],{"class":671}," type",[264,893,387],{"class":269},[264,895,896],{"class":277},"from",[264,898,387],{"class":269},[264,900,901],{"class":277},"width",[264,903,393],{"class":269},[264,905,906],{"class":277},"0",[264,908,909],{"class":269},"; } }\n",[264,911,913,915,918,920,923,925,928,930,933],{"class":91,"line":912},40,[264,914,668],{"class":399},[264,916,917],{"class":671}," caret",[264,919,387],{"class":269},[264,921,922],{"class":277},"50%",[264,924,387],{"class":269},[264,926,927],{"class":277},"border-color",[264,929,393],{"class":269},[264,931,932],{"class":277},"transparent",[264,934,909],{"class":269},[264,936,938],{"class":91,"line":937},41,[264,939,458],{"emptyLinePlaceholder":457},[264,941,943],{"class":91,"line":942},42,[264,944,945],{"class":464},"  \u002F* 3. TICKING HAND: 60 discrete positions per minute. *\u002F\n",[264,947,949,952],{"class":91,"line":948},43,[264,950,951],{"class":277},"  .dial",[264,953,486],{"class":269},[264,955,957,960,962,965],{"class":91,"line":956},44,[264,958,959],{"class":277},"    position",[264,961,393],{"class":269},[264,963,964],{"class":277},"relative",[264,966,502],{"class":269},[264,968,970,972,974,977,979],{"class":91,"line":969},45,[264,971,492],{"class":277},[264,973,393],{"class":269},[264,975,976],{"class":277},"6",[264,978,427],{"class":399},[264,980,502],{"class":269},[264,982,984,986,988,990,992],{"class":91,"line":983},46,[264,985,508],{"class":277},[264,987,393],{"class":269},[264,989,976],{"class":277},[264,991,427],{"class":399},[264,993,502],{"class":269},[264,995,997,1000,1002,1004,1006,1008,1010],{"class":91,"line":996},47,[264,998,999],{"class":277},"    border",[264,1001,393],{"class":269},[264,1003,809],{"class":277},[264,1005,400],{"class":399},[264,1007,814],{"class":277},[264,1009,817],{"class":277},[264,1011,502],{"class":269},[264,1013,1015,1018,1020,1023,1026],{"class":91,"line":1014},48,[264,1016,1017],{"class":277},"    border-radius",[264,1019,393],{"class":269},[264,1021,1022],{"class":277},"50",[264,1024,1025],{"class":399},"%",[264,1027,502],{"class":269},[264,1029,1031],{"class":91,"line":1030},49,[264,1032,662],{"class":269},[264,1034,1036,1039],{"class":91,"line":1035},50,[264,1037,1038],{"class":277},"  .hand",[264,1040,486],{"class":269},[264,1042,1044,1046,1048,1051],{"class":91,"line":1043},51,[264,1045,959],{"class":277},[264,1047,393],{"class":269},[264,1049,1050],{"class":277},"absolute",[264,1052,502],{"class":269},[264,1054,1056,1059,1061,1064,1066,1068,1070,1073,1076,1078],{"class":91,"line":1055},52,[264,1057,1058],{"class":277},"    left",[264,1060,393],{"class":269},[264,1062,1063],{"class":277},"calc",[264,1065,645],{"class":269},[264,1067,1022],{"class":277},[264,1069,1025],{"class":399},[264,1071,1072],{"class":399}," -",[264,1074,1075],{"class":277}," 1",[264,1077,400],{"class":399},[264,1079,1080],{"class":269},");\n",[264,1082,1084,1087,1089,1091,1093],{"class":91,"line":1083},53,[264,1085,1086],{"class":277},"    top",[264,1088,393],{"class":269},[264,1090,165],{"class":277},[264,1092,1025],{"class":399},[264,1094,502],{"class":269},[264,1096,1098,1100,1102,1104,1106],{"class":91,"line":1097},54,[264,1099,492],{"class":277},[264,1101,393],{"class":269},[264,1103,809],{"class":277},[264,1105,400],{"class":399},[264,1107,502],{"class":269},[264,1109,1111,1113,1115,1117,1119],{"class":91,"line":1110},55,[264,1112,508],{"class":277},[264,1114,393],{"class":269},[264,1116,93],{"class":277},[264,1118,1025],{"class":399},[264,1120,502],{"class":269},[264,1122,1124,1127,1129,1132],{"class":91,"line":1123},56,[264,1125,1126],{"class":277},"    background",[264,1128,393],{"class":269},[264,1130,1131],{"class":277},"#dc2626",[264,1133,502],{"class":269},[264,1135,1137,1140,1142,1144,1146,1149,1151],{"class":91,"line":1136},57,[264,1138,1139],{"class":277},"    transform-origin",[264,1141,393],{"class":269},[264,1143,1022],{"class":277},[264,1145,1025],{"class":399},[264,1147,1148],{"class":277}," 100",[264,1150,1025],{"class":399},[264,1152,502],{"class":269},[264,1154,1156,1158,1161,1164,1166,1168,1170,1172,1174,1176],{"class":91,"line":1155},58,[264,1157,630],{"class":277},[264,1159,1160],{"class":269},": tick ",[264,1162,1163],{"class":277},"60",[264,1165,639],{"class":399},[264,1167,642],{"class":277},[264,1169,645],{"class":269},[264,1171,1163],{"class":277},[264,1173,651],{"class":269},[264,1175,654],{"class":277},[264,1177,502],{"class":269},[264,1179,1181],{"class":91,"line":1180},59,[264,1182,662],{"class":269},[264,1184,1186,1188,1191,1193,1196,1198,1201,1203,1206,1209],{"class":91,"line":1185},60,[264,1187,668],{"class":399},[264,1189,1190],{"class":671}," tick",[264,1192,387],{"class":269},[264,1194,1195],{"class":277},"to",[264,1197,387],{"class":269},[264,1199,1200],{"class":277},"rotate",[264,1202,393],{"class":269},[264,1204,1205],{"class":277},"1",[264,1207,1208],{"class":399},"turn",[264,1210,909],{"class":269},[264,1212,1214],{"class":91,"line":1213},61,[264,1215,458],{"emptyLinePlaceholder":457},[264,1217,1219,1222],{"class":91,"line":1218},62,[264,1220,1221],{"class":399},"  @media",[264,1223,1224],{"class":269}," (prefers-reduced-motion: reduce) {\n",[264,1226,1228,1231,1233,1236,1238,1241,1243,1245],{"class":91,"line":1227},63,[264,1229,1230],{"class":277},"    .sprite",[264,1232,411],{"class":269},[264,1234,1235],{"class":277},".hand",[264,1237,387],{"class":269},[264,1239,1240],{"class":277},"animation",[264,1242,393],{"class":269},[264,1244,103],{"class":277},[264,1246,451],{"class":269},[264,1248,1250,1253,1255,1257,1259,1261,1263,1266,1268,1270],{"class":91,"line":1249},64,[264,1251,1252],{"class":277},"    .typed",[264,1254,387],{"class":269},[264,1256,1240],{"class":277},[264,1258,393],{"class":269},[264,1260,103],{"class":277},[264,1262,417],{"class":269},[264,1264,1265],{"class":277},"border-inline-end-color",[264,1267,393],{"class":269},[264,1269,932],{"class":277},[264,1271,451],{"class":269},[264,1273,1275],{"class":91,"line":1274},65,[264,1276,662],{"class":269},[264,1278,1280,1283,1285],{"class":91,"line":1279},66,[264,1281,1282],{"class":269},"\u003C\u002F",[264,1284,376],{"class":273},[264,1286,281],{"class":269},[264,1288,1290,1292,1294],{"class":91,"line":1289},67,[264,1291,1282],{"class":269},[264,1293,309],{"class":273},[264,1295,281],{"class":269},[264,1297,1299,1301,1304],{"class":91,"line":1298},68,[264,1300,287],{"class":269},[264,1302,1303],{"class":273},"body",[264,1305,281],{"class":269},[264,1307,1309,1312,1315,1318,1320,1323,1326,1328,1331,1334,1336,1339,1342,1344],{"class":91,"line":1308},69,[264,1310,1311],{"class":269},"  \u003C",[264,1313,1314],{"class":273},"div",[264,1316,1317],{"class":277}," class",[264,1319,295],{"class":269},[264,1321,1322],{"class":298},"\"sprite\"",[264,1324,1325],{"class":277}," role",[264,1327,295],{"class":269},[264,1329,1330],{"class":298},"\"img\"",[264,1332,1333],{"class":277}," aria-label",[264,1335,295],{"class":269},[264,1337,1338],{"class":298},"\"Walking character\"",[264,1340,1341],{"class":269},">\u003C\u002F",[264,1343,1314],{"class":273},[264,1345,281],{"class":269},[264,1347,1349,1351,1353,1355,1357,1360,1363,1365],{"class":91,"line":1348},70,[264,1350,1311],{"class":269},[264,1352,19],{"class":273},[264,1354,1317],{"class":277},[264,1356,295],{"class":269},[264,1358,1359],{"class":298},"\"typed\"",[264,1361,1362],{"class":269},">Deploy finished in 42s.\u003C\u002F",[264,1364,19],{"class":273},[264,1366,281],{"class":269},[264,1368,1370,1372,1374,1376,1378,1381,1383,1385,1387,1389,1391,1394,1397,1399,1401,1403,1406,1408,1410,1412,1414],{"class":91,"line":1369},71,[264,1371,1311],{"class":269},[264,1373,1314],{"class":273},[264,1375,1317],{"class":277},[264,1377,295],{"class":269},[264,1379,1380],{"class":298},"\"dial\"",[264,1382,1325],{"class":277},[264,1384,295],{"class":269},[264,1386,1330],{"class":298},[264,1388,1333],{"class":277},[264,1390,295],{"class":269},[264,1392,1393],{"class":298},"\"Seconds dial\"",[264,1395,1396],{"class":269},">\u003C",[264,1398,264],{"class":273},[264,1400,1317],{"class":277},[264,1402,295],{"class":269},[264,1404,1405],{"class":298},"\"hand\"",[264,1407,1341],{"class":269},[264,1409,264],{"class":273},[264,1411,1341],{"class":269},[264,1413,1314],{"class":273},[264,1415,281],{"class":269},[264,1417,1419,1421,1423],{"class":91,"line":1418},72,[264,1420,1282],{"class":269},[264,1422,1303],{"class":273},[264,1424,281],{"class":269},[264,1426,1428,1430,1432],{"class":91,"line":1427},73,[264,1429,1282],{"class":269},[264,1431,259],{"class":273},[264,1433,281],{"class":269},[19,1435,1436,1437,1440,1441,1444,1445,1447,1448,1451,1452,1455,1456,1459,1460,1463],{},"Two lines deserve attention. The sprite animates to ",[14,1438,1439],{},"-384px",", the position of a ninth frame that does not exist, and uses ",[14,1442,1443],{},"steps(8)",": with the default ",[14,1446,111],{},", the eight plateaus show frames one to eight and the ninth position is never displayed. Animating to ",[14,1449,1450],{},"-336px"," — the last real frame — would need ",[14,1453,1454],{},"steps(7)",", or ",[14,1457,1458],{},"steps(8, jump-none)",". And the typewriter's text, \"Deploy finished in 42s.\", is 23 characters including spaces and the full stop, so it animates width in 23 steps of ",[14,1461,1462],{},"1ch","; if the text changes length, the step count and final width must change with it, which is the main maintenance cost of the effect.",[40,1465,1467],{"id":1466},"the-key-technique-matching-steps-to-distance","The key technique: matching steps to distance",[19,1469,1470,1471,1473],{},"Every ",[14,1472,16],{}," bug is a mismatch between the number of steps and the distance divided by the size of one frame. The rule is simple enough to state as arithmetic.",[66,1475,73,1478,73,1481,73,1484,73,1487,73,1491,73,1495,73,1498,73,1501,73,1504,73,1506,73,1509,73,1512,73,1518,73,1523,73,1526,73,1529,73,1532,73,1536,73,1539,73,1543,73,1545,73,1549,73,1553,73,1556,73,1560],{"viewBox":1476,"role":69,"ariaLabel":1477,"xmlns":71,"style":72},"0 0 720 260","Sprite sheet strip of eight frames with the animation distance ending one frame past the last, illustrating steps equals distance divided by frame width",[75,1479,1480],{},"steps = distance ÷ frame size",[79,1482,1483],{},"A strip of eight numbered frames, 48 pixels each. An arrow spans from frame one's start to the end of frame eight, 384 pixels, labelled steps(8) with jump-end. A dashed ninth slot marks the never-shown position.",[83,1485,1486],{"textAnchor":85,"x":86,"y":87,"style":88},"384px ÷ 48px = 8 steps",[160,1488],{"x":93,"y":1163,"width":1489,"height":1163,"rx":1490,"fill":104,"opacity":98},"72","4",[160,1492],{"x":1493,"y":1163,"width":1489,"height":1163,"rx":1490,"fill":104,"opacity":1494},"112","0.35",[160,1496],{"x":1497,"y":1163,"width":1489,"height":1163,"rx":1490,"fill":104,"opacity":98},"184",[160,1499],{"x":1500,"y":1163,"width":1489,"height":1163,"rx":1490,"fill":104,"opacity":1494},"256",[160,1502],{"x":1503,"y":1163,"width":1489,"height":1163,"rx":1490,"fill":104,"opacity":98},"328",[160,1505],{"x":133,"y":1163,"width":1489,"height":1163,"rx":1490,"fill":104,"opacity":1494},[160,1507],{"x":1508,"y":1163,"width":1489,"height":1163,"rx":1490,"fill":104,"opacity":98},"472",[160,1510],{"x":1511,"y":1163,"width":1489,"height":1163,"rx":1490,"fill":104,"opacity":1494},"544",[1513,1514],"path",{"d":1515,"fill":103,"stroke":96,"strokeDashArray":1516,"opacity":1517},"M616 60 H688 V120 H616 Z",[1490,1490],"0.6",[83,1519,1205],{"textAnchor":85,"x":1520,"y":1521,"style":1522},"76","95","text-anchor:middle;fill:currentColor;font:12px ui-monospace,monospace",[83,1524,809],{"textAnchor":85,"x":1525,"y":1521,"style":1522},"148",[83,1527,1528],{"textAnchor":85,"x":119,"y":1521,"style":1522},"3",[83,1530,1490],{"textAnchor":85,"x":1531,"y":1521,"style":1522},"292",[83,1533,1535],{"textAnchor":85,"x":1534,"y":1521,"style":1522},"364","5",[83,1537,976],{"textAnchor":85,"x":1538,"y":1521,"style":1522},"436",[83,1540,1542],{"textAnchor":85,"x":1541,"y":1521,"style":1522},"508","7",[83,1544,648],{"textAnchor":85,"x":147,"y":1521,"style":1522},[83,1546,1548],{"textAnchor":85,"x":1547,"y":1521,"style":115},"652","never",[91,1550],{"x1":93,"y1":94,"x2":1551,"y2":94,"stroke":96,"strokeWidth":809,"opacity":1552},"616","0.7",[1513,1554],{"d":1555,"fill":96,"opacity":1552},"M606 144 L618 150 L606 156 Z",[83,1557,1559],{"textAnchor":85,"x":1503,"y":1558,"style":110},"176","background-position: 0 → -384px, steps(8)",[83,1561,1563],{"textAnchor":85,"x":86,"y":162,"style":1562},"text-anchor:middle;fill:currentColor;font:12px sans-serif","Travel to the last frame instead (-336px)? Then steps(7), or steps(8, jump-none).",[19,1565,1566,1567,1569],{},"When a sprite looks like it \"slides\" between frames, the step count is too high and the sheet is being positioned between frames. When it skips a frame, the count is too low. When it shows a blank or a frame from another row at the end of each cycle, the distance goes one frame too far for the step position chosen. Checking the arithmetic — distance divided by frame size equals steps for ",[14,1568,111],{}," — resolves all three.",[40,1571,1573],{"id":1572},"accessibility-notes","Accessibility notes",[19,1575,1576,1577,1580,1581,1584],{},"Frame-by-frame effects are frequently decorative and frequently looping, which is the combination WCAG 2.2.2 Pause, Stop, Hide addresses: moving content that starts automatically and lasts more than five seconds needs a mechanism to pause it. A looping sprite in the corner of a page qualifies. The simplest compliant approach is to not loop indefinitely — ",[14,1578,1579],{},"animation-iteration-count: 3"," — and to disable the animation under ",[14,1582,1583],{},"prefers-reduced-motion",", as the example does.",[19,1586,1587,1588,1592],{},"The typewriter needs a second consideration: screen readers read the element's full text immediately, regardless of the visual animation, which is correct. Do not try to \"type\" content into the accessibility tree character by character with live regions; that produces a stream of announcements. And blinking carets should stop after a few seconds or respect reduced motion, since blinking content is itself a motion concern. The patterns for pausing loops are covered in ",[29,1589,1591],{"href":1590},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations\u002Fpause-controls-for-looping-animations\u002F","Pause Controls for Looping Animations",".",[40,1594,1596],{"id":1595},"variation-a-segmented-progress-meter","Variation: a segmented progress meter",[19,1598,1599,1601],{},[14,1600,16],{}," also works on transitions. A progress meter drawn as ten segments should fill segment by segment, not smoothly, so that the fill always lands on a segment boundary.",[255,1603,1607],{"className":1604,"code":1605,"language":1606,"meta":260,"style":260},"language-css shiki shiki-themes github-light-high-contrast github-dark-high-contrast",".meter {\n  --value: 0.7;                          \u002F* set from data, 0 to 1 *\u002F\n  height: 0.75rem;\n  border-radius: 999px;\n  background:\n    linear-gradient(#4f46e5 0 0) 0 \u002F calc(var(--value) * 100%) 100% no-repeat,\n    repeating-linear-gradient(to right, #e2e8f0 0 9%, transparent 9% 10%);\n  transition: background-size 0.6s steps(10, jump-end);\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .meter { transition: none; }\n}\n","css",[14,1608,1609,1616,1631,1645,1659,1666,1720,1758,1779,1784,1788,1795,1811],{"__ignoreMap":260},[264,1610,1611,1614],{"class":91,"line":266},[264,1612,1613],{"class":277},".meter",[264,1615,486],{"class":269},[264,1617,1618,1621,1623,1625,1628],{"class":91,"line":284},[264,1619,1620],{"class":671},"  --value",[264,1622,393],{"class":269},[264,1624,1552],{"class":277},[264,1626,1627],{"class":269},";                          ",[264,1629,1630],{"class":464},"\u002F* set from data, 0 to 1 *\u002F\n",[264,1632,1633,1636,1638,1641,1643],{"class":91,"line":304},[264,1634,1635],{"class":277},"  height",[264,1637,393],{"class":269},[264,1639,1640],{"class":277},"0.75",[264,1642,427],{"class":399},[264,1644,502],{"class":269},[264,1646,1647,1650,1652,1655,1657],{"class":91,"line":314},[264,1648,1649],{"class":277},"  border-radius",[264,1651,393],{"class":269},[264,1653,1654],{"class":277},"999",[264,1656,400],{"class":399},[264,1658,502],{"class":269},[264,1660,1661,1664],{"class":91,"line":332},[264,1662,1663],{"class":277},"  background",[264,1665,831],{"class":269},[264,1667,1668,1671,1673,1676,1678,1680,1682,1684,1687,1689,1691,1694,1696,1699,1701,1704,1706,1708,1710,1713,1715,1718],{"class":91,"line":357},[264,1669,1670],{"class":277},"    linear-gradient",[264,1672,645],{"class":269},[264,1674,1675],{"class":277},"#4f46e5",[264,1677,551],{"class":277},[264,1679,551],{"class":277},[264,1681,651],{"class":269},[264,1683,906],{"class":277},[264,1685,1686],{"class":269}," \u002F ",[264,1688,1063],{"class":277},[264,1690,645],{"class":269},[264,1692,1693],{"class":277},"var",[264,1695,645],{"class":269},[264,1697,1698],{"class":671},"--value",[264,1700,651],{"class":269},[264,1702,1703],{"class":399},"*",[264,1705,1148],{"class":277},[264,1707,1025],{"class":399},[264,1709,651],{"class":269},[264,1711,1712],{"class":277},"100",[264,1714,1025],{"class":399},[264,1716,1717],{"class":277}," no-repeat",[264,1719,542],{"class":269},[264,1721,1722,1725,1727,1729,1731,1733,1736,1738,1741,1743,1745,1747,1749,1751,1754,1756],{"class":91,"line":371},[264,1723,1724],{"class":277},"    repeating-linear-gradient",[264,1726,645],{"class":269},[264,1728,1195],{"class":399},[264,1730,539],{"class":277},[264,1732,411],{"class":269},[264,1734,1735],{"class":277},"#e2e8f0",[264,1737,551],{"class":277},[264,1739,1740],{"class":277}," 9",[264,1742,1025],{"class":399},[264,1744,411],{"class":269},[264,1746,932],{"class":277},[264,1748,1740],{"class":277},[264,1750,1025],{"class":399},[264,1752,1753],{"class":277}," 10",[264,1755,1025],{"class":399},[264,1757,1080],{"class":269},[264,1759,1760,1763,1766,1768,1770,1772,1774,1776],{"class":91,"line":381},[264,1761,1762],{"class":277},"  transition",[264,1764,1765],{"class":269},": background-size ",[264,1767,1517],{"class":277},[264,1769,639],{"class":399},[264,1771,642],{"class":277},[264,1773,645],{"class":269},[264,1775,165],{"class":277},[264,1777,1778],{"class":269},", jump-end);\n",[264,1780,1781],{"class":91,"line":454},[264,1782,1783],{"class":269},"}\n",[264,1785,1786],{"class":91,"line":461},[264,1787,458],{"emptyLinePlaceholder":457},[264,1789,1790,1793],{"class":91,"line":468},[264,1791,1792],{"class":399},"@media",[264,1794,1224],{"class":269},[264,1796,1797,1800,1802,1805,1807,1809],{"class":91,"line":474},[264,1798,1799],{"class":277},"  .meter",[264,1801,387],{"class":269},[264,1803,1804],{"class":277},"transition",[264,1806,393],{"class":269},[264,1808,103],{"class":277},[264,1810,451],{"class":269},[264,1812,1813],{"class":91,"line":480},[264,1814,1783],{"class":269},[19,1816,1817,1818,1821,1822,1825],{},"Because the transition runs in ten steps of 10%, the fill advances one segment at a time, matching the drawn segments. The meter should still be a real ",[14,1819,1820],{},"\u003Cprogress>"," or ",[14,1823,1824],{},"role=\"meter\""," element with a text value for assistive technology; the stepped fill is presentation only.",[40,1827,1829],{"id":1828},"browser-support","Browser support",[19,1831,1832,1834,1835,231,1837,1839,1840,231,1842,1844,1845,1848,1849,231,1851,1853,1854,1856,1857,1860],{},[14,1833,16],{}," with ",[14,1836,127],{},[14,1838,111],{}," (and the older ",[14,1841,200],{},[14,1843,189],{}," keywords) is supported in every browser with CSS animations; ",[14,1846,1847],{},"@keyframes"," dates from Chrome 43, Edge 12, Firefox 16 and Safari 9. The ",[14,1850,155],{},[14,1852,141],{}," positions are newer but supported in all current engines. The standalone ",[14,1855,1200],{}," property used for the clock hand is supported in current Chrome, Edge, Firefox and Safari; ",[14,1858,1859],{},"transform: rotate()"," is the fallback.",[40,1862,1864],{"id":1863},"faq","FAQ",[19,1866,1867,1877,1878,1880,1881,1883,1884,1886],{},[182,1868,1869,1870,231,1873,1876],{},"What is the difference between ",[14,1871,1872],{},"steps(4, jump-start)",[14,1874,1875],{},"steps(4, jump-end)","?","\nBoth divide the animation into four equal intervals and hold a constant value in each. ",[14,1879,127],{}," changes value at the beginning of each interval, so the first frame is already one step in. ",[14,1882,111],{}," changes at the end of each interval, so the first frame shows the starting value and the final value only appears as the animation finishes. ",[14,1885,111],{}," is the default.",[19,1888,1889,1892,1893,1896,1897,1899,1900,1592],{},[182,1890,1891],{},"Why does my sprite animation skip the first or last frame?","\nThe step position does not match the keyframe distances. For a sprite sheet with N frames animated from the first frame's position to the position just past the last frame, use ",[14,1894,1895],{},"steps(N)"," with the default ",[14,1898,111],{},". Animating to the last frame's position instead needs ",[14,1901,1902],{},"steps(N - 1)",[19,1904,1905,1911,1912,1914,1915,1918],{},[182,1906,1907,1908,1910],{},"Can ",[14,1909,16],{}," be used with transitions as well as animations?","\nYes. ",[14,1913,16],{}," is a timing function like any other, so ",[14,1916,1917],{},"transition-timing-function: steps(5)"," makes a transition change in five discrete jumps. It is useful for pixel-art hovers and segmented progress bars.",[19,1920,1921,1927,1928,1930,1931,1821,1934,1937],{},[182,1922,1923,1924,1926],{},"Is a ",[14,1925,16],{}," animation cheaper than a smooth one?","\nNot necessarily. The browser still produces a frame for every display refresh; it just holds the same value across many of them. Animating ",[14,1929,49],{}," repaints on each step change, while stepping ",[14,1932,1933],{},"transform",[14,1935,1936],{},"opacity"," stays on the compositor.",[40,1939,1941],{"id":1940},"related","Related",[176,1943,1944,1949,1956,1963],{},[179,1945,1946,1948],{},[29,1947,32],{"href":31}," — the parent guide.",[179,1950,1951,1955],{},[29,1952,1954],{"href":1953},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns\u002Fcss-only-loading-spinners-and-skeletons\u002F","CSS-Only Loading Spinners and Skeletons"," — stepped spinners among other loaders.",[179,1957,1958,1962],{},[29,1959,1961],{"href":1960},"\u002Fcss-only-micro-interactions-animations\u002Feasing-and-motion-design\u002Fchoosing-animation-durations\u002F","Choosing Animation Durations"," — timing each frame of a cycle.",[179,1964,1965,1969],{},[29,1966,1968],{"href":1967},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-syntax-basics\u002Fcontainer-query-units-cqi-cqb-explained\u002F","Container Query Units: cqi, cqb Explained"," — the other relative units that pair with ch.",[376,1971,1972],{},"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);}",{"title":260,"searchDepth":284,"depth":284,"links":1974},[1975,1976,1977,1978,1979,1980,1981,1982,1983],{"id":42,"depth":284,"text":43},{"id":63,"depth":284,"text":64},{"id":245,"depth":284,"text":246},{"id":1466,"depth":284,"text":1467},{"id":1572,"depth":284,"text":1573},{"id":1595,"depth":284,"text":1596},{"id":1828,"depth":284,"text":1829},{"id":1863,"depth":284,"text":1864},{"id":1940,"depth":284,"text":1941},"Frame-by-frame CSS animation with steps(): sprite sheets, typewriter text, ticking clocks and blinking carets, with jump-start and jump-end explained.","md",{"pageTitle":1987,"datePublished":1988,"dateModified":1988,"faq":1989},"steps() Easing for Sprites and Typing","2026-09-18",[1990,1993,1995,1998],{"q":1991,"a":1992},"What is the difference between steps(4, jump-start) and steps(4, jump-end)?","Both divide the animation into four equal intervals and hold a constant value in each. jump-start changes value at the beginning of each interval, so the first frame is already one step in. jump-end changes at the end of each interval, so the first frame shows the starting value and the final value only appears as the animation finishes. jump-end is the default.",{"q":1891,"a":1994},"The step position does not match the keyframe distances. For a sprite sheet with N frames animated from the first frame's position to the position just past the last frame, use steps(N) with the default jump-end. Animating to the last frame's position instead needs steps(N - 1).",{"q":1996,"a":1997},"Can steps() be used with transitions as well as animations?","Yes. steps() is a timing function like any other, so transition-timing-function: steps(5) makes a transition change in five discrete jumps. It is useful for pixel-art hovers and segmented progress bars.",{"q":1999,"a":2000},"Is a steps() animation cheaper than a smooth one?","Not necessarily. The browser still produces a frame for every display refresh; it just holds the same value across many of them. Animating background-position repaints on each step change, while stepping transform or opacity stays on the compositor.","\u002Fcss-only-micro-interactions-animations\u002Feasing-and-motion-design\u002Fsteps-easing-for-sprite-animations",{"title":5,"description":1984},"css-only-micro-interactions-animations\u002Feasing-and-motion-design\u002Fsteps-easing-for-sprite-animations\u002Findex","bgLfLX1hh7NLFXBaMsdsvd7rNqmcWgdozMsjMRwc9Do",[2006,2009,2012,2015,2018,2021,2024,2027,2030,2033,2036,2039,2042,2045,2048,2051,2054,2057,2060,2063,2066,2069,2072,2075,2078,2081,2084,2087,2090,2093,2096,2099,2102,2105,2108,2111,2114,2117,2120,2123,2126,2129,2132,2135,2138,2141,2144,2147,2150,2153,2156,2159,2162,2165,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,2285,2288,2291,2294,2297,2300,2303,2306,2309,2312,2315,2318,2321,2324,2327,2330,2333,2336,2339,2342,2345,2348,2351,2354,2357,2360,2363,2366,2369,2372,2375,2378,2381,2384,2387,2390,2393,2396,2399,2402,2405,2408,2411,2414,2417,2420,2423,2426,2429,2432,2435,2438,2441,2444,2447,2450,2453,2456,2459,2462,2465,2468,2471,2474,2477,2480,2483,2486,2489,2492,2495,2498,2501,2504,2507,2510,2513,2516,2519,2522,2525,2528,2531,2534,2537,2540,2543,2546,2549,2552,2555,2558,2561],{"path":2007,"title":2008},"\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":2010,"title":2011},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations\u002Fflashing-content-and-seizure-thresholds","Flashing Content and Seizure Thresholds",{"path":2013,"title":2014},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations\u002Fforced-colors-mode-and-animations","Forced Colors Mode and Animations",{"path":2016,"title":2017},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations","Accessibility in CSS Animations: Patterns, Specs & Best Practices",{"path":2019,"title":2020},"\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":2022,"title":2023},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations\u002Fprefers-reduced-motion-recipes","prefers-reduced-motion Recipes: A Reduction for Every Common Effect",{"path":2025,"title":2026},"\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":2028,"title":2029},"\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":2031,"title":2032},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations\u002Fvestibular-safe-animation-patterns","Vestibular-Safe Animation Patterns: Why Some Motion Makes People Sick",{"path":2034,"title":2035},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations\u002Fwcag-motion-success-criteria","WCAG Motion Success Criteria: What Each One Actually Requires",{"path":2037,"title":2038},"\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":2040,"title":2041},"\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":2043,"title":2044},"\u002Fcss-only-micro-interactions-animations\u002Fclip-path-and-mask-animations","Clip-Path & Mask Animations: Animating Visibility Instead of Position",{"path":2046,"title":2047},"\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":2049,"title":2050},"\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":2052,"title":2053},"\u002Fcss-only-micro-interactions-animations\u002Fcolor-and-theme-transitions\u002Fanimating-gradients","Animating CSS Gradients: Smooth Colour Motion Without Jumps",{"path":2055,"title":2056},"\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":2058,"title":2059},"\u002Fcss-only-micro-interactions-animations\u002Fcolor-and-theme-transitions","Color & Theme Transitions: Colour as Part of the Motion System",{"path":2061,"title":2062},"\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":2064,"title":2065},"\u002Fcss-only-micro-interactions-animations\u002Fcolor-and-theme-transitions\u002Fsmooth-theme-switching-transitions","Smooth Theme Switching: Crossfades, Circular Reveals and No Flash",{"path":2067,"title":2068},"\u002Fcss-only-micro-interactions-animations\u002Fcontainer-aware-motion\u002Fcontainer-query-hover-affordances","Container Query Hover Affordances: When Narrow Means Persistent, Not Hidden",{"path":2070,"title":2071},"\u002Fcss-only-micro-interactions-animations\u002Fcontainer-aware-motion","Container-Aware Motion: Animation Sized by the Space a Component Actually Has",{"path":2073,"title":2074},"\u002Fcss-only-micro-interactions-animations\u002Fcontainer-aware-motion\u002Flayout-change-animations-at-container-breakpoints","Animating Changes at Container Breakpoints",{"path":2076,"title":2077},"\u002Fcss-only-micro-interactions-animations\u002Fcontainer-aware-motion\u002Fmotion-driven-by-container-style-queries","Motion Driven by Container Style Queries",{"path":2079,"title":2080},"\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":2082,"title":2083},"\u002Fcss-only-micro-interactions-animations\u002Fcontainer-aware-motion\u002Fsuppressing-motion-in-small-containers","Suppressing Motion in Small Containers: Deliberately Animating Nothing",{"path":2085,"title":2086},"\u002Fcss-only-micro-interactions-animations\u002Fcss-animation-vs-web-animations-api\u002Fcontrolling-css-animations-from-javascript","Controlling CSS Animations From JavaScript",{"path":2088,"title":2089},"\u002Fcss-only-micro-interactions-animations\u002Fcss-animation-vs-web-animations-api","CSS Animation vs the Web Animations API: A Decision Guide",{"path":2091,"title":2092},"\u002Fcss-only-micro-interactions-animations\u002Fcss-animation-vs-web-animations-api\u002Fwaapi-vs-css-for-interruptible-ui","Interruptible UI: CSS Transitions vs WAAPI",{"path":2094,"title":2095},"\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":2097,"title":2098},"\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":2100,"title":2101},"\u002Fcss-only-micro-interactions-animations\u002Fcss-custom-properties-architecture\u002Fcustom-property-fallbacks-and-invalid-values","Custom Property Fallbacks and Invalid Values",{"path":2103,"title":2104},"\u002Fcss-only-micro-interactions-animations\u002Fcss-custom-properties-architecture\u002Ffluid-spacing-tokens-driving-transition-durations","Fluid Spacing Tokens That Drive Transition Durations",{"path":2106,"title":2107},"\u002Fcss-only-micro-interactions-animations\u002Fcss-custom-properties-architecture","CSS Custom Properties Architecture: Scalable Design Systems & Dynamic UI",{"path":2109,"title":2110},"\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":2112,"title":2113},"\u002Fcss-only-micro-interactions-animations\u002Fcss-custom-properties-architecture\u002Fscoping-custom-properties-to-components","Scoping Custom Properties to Components",{"path":2115,"title":2116},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Fcss-transition-timing-functions","CSS Transition Timing Functions: ease, cubic-bezier(), steps() and linear()",{"path":2118,"title":2119},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals","CSS Transition Fundamentals: Architecture, Performance & Patterns",{"path":2121,"title":2122},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Finterrupted-and-reversing-transitions","Interrupted and Reversing Transitions: What Happens Mid-Flight",{"path":2124,"title":2125},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Fstarting-style-entry-animations","@starting-style: Animating an Element's Very First Style Change",{"path":2127,"title":2128},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Ftransition-delay-choreography","Choreographing Motion With transition-delay",{"path":2130,"title":2131},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Ftransition-shorthand-and-multiple-properties","The transition Shorthand and Multiple Properties",{"path":2133,"title":2134},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Ftransitioning-display-with-allow-discrete","Transitioning display with transition-behavior: allow-discrete and @starting-style",{"path":2136,"title":2137},"\u002Fcss-only-micro-interactions-animations\u002Fdialog-and-popover-animations\u002Fanimating-dialog-open-and-close","Animating \u003Cdialog> Open and Close: Both Directions, No Library",{"path":2139,"title":2140},"\u002Fcss-only-micro-interactions-animations\u002Fdialog-and-popover-animations\u002Fbackdrop-animations","Animating ::backdrop: Fades and Blurs Behind Dialogs and Popovers",{"path":2142,"title":2143},"\u002Fcss-only-micro-interactions-animations\u002Fdialog-and-popover-animations","Dialog & Popover Animations: Motion for the Top Layer",{"path":2145,"title":2146},"\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":2148,"title":2149},"\u002Fcss-only-micro-interactions-animations\u002Fdialog-and-popover-animations\u002Fpopover-entry-and-exit-transitions","Popover Menus That Animate From Their Anchor",{"path":2151,"title":2152},"\u002Fcss-only-micro-interactions-animations\u002Feasing-and-motion-design\u002Fchoosing-animation-durations","Choosing Animation Durations: How Long Motion Should Last",{"path":2154,"title":2155},"\u002Fcss-only-micro-interactions-animations\u002Feasing-and-motion-design\u002Fcubic-bezier-overshoot-and-anticipation","Overshoot and Anticipation With cubic-bezier(): Motion With Character",{"path":2157,"title":2158},"\u002Fcss-only-micro-interactions-animations\u002Feasing-and-motion-design\u002Fentry-vs-exit-easing","Entry vs Exit Easing: Different Curves for Arriving and Leaving",{"path":2160,"title":2161},"\u002Fcss-only-micro-interactions-animations\u002Feasing-and-motion-design","Easing & Motion Design: Making CSS Motion Feel Intentional",{"path":2163,"title":2164},"\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":2001,"title":5},{"path":2167,"title":2168},"\u002Fcss-only-micro-interactions-animations\u002Fhover-focus-state-design\u002Faccessible-css-only-tooltips","Accessible CSS-Only Tooltips and Hover Cards With  and ",{"path":2170,"title":2171},"\u002Fcss-only-micro-interactions-animations\u002Fhover-focus-state-design\u002Fbutton-press-and-active-states","Button Press and  States",{"path":2173,"title":2174},"\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":2176,"title":2177},"\u002Fcss-only-micro-interactions-animations\u002Fhover-focus-state-design\u002Ffocus-within-form-patterns"," Form Patterns: Styling a Group From the Field Inside It",{"path":2179,"title":2180},"\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":2182,"title":2183},"\u002Fcss-only-micro-interactions-animations\u002Fhover-focus-state-design","Hover & Focus State Design: Spec-Compliant Patterns for Modern UIs",{"path":2185,"title":2186},"\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":2188,"title":2189},"\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":2191,"title":2192},"\u002Fcss-only-micro-interactions-animations","CSS-Only Micro-Interactions & Animations: Architecture, Performance & Implementation",{"path":2194,"title":2195},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns\u002Fanimation-composition-and-stacking","Stacking Animations With animation-composition",{"path":2197,"title":2198},"\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":2200,"title":2201},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns\u002Fcontainer-query-triggered-keyframe-animations","Container-Query-Triggered Keyframe Animations: Animate Differently per Available Space",{"path":2203,"title":2204},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns\u002Fcss-only-accordions-and-disclosure","CSS-Only Accordions and Disclosure Widgets with details and summary",{"path":2206,"title":2207},"\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":2209,"title":2210},"\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":2212,"title":2213},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns","Keyframe Animation Patterns: Spec-Compliant Architectures for Modern UIs",{"path":2215,"title":2216},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns\u002Fmulti-step-keyframes-and-per-keyframe-easing","Multi-Step Keyframes and Per-Keyframe Easing",{"path":2218,"title":2219},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns\u002Fstaggered-list-animations-with-custom-properties","Staggered List Animations Using --i Index Custom Properties",{"path":2221,"title":2222},"\u002Fcss-only-micro-interactions-animations\u002Fperformance-gpu-acceleration\u002Fanimating-box-shadow-and-filters-cheaply","Animating box-shadow and Filters Cheaply",{"path":2224,"title":2225},"\u002Fcss-only-micro-interactions-animations\u002Fperformance-gpu-acceleration\u002Fcontain-property-for-animation-performance","The contain Property for Animation Performance",{"path":2227,"title":2228},"\u002Fcss-only-micro-interactions-animations\u002Fperformance-gpu-acceleration\u002Fcss-triggers-layout-paint-composite","Layout, Paint and Composite: What Triggers What",{"path":2230,"title":2231},"\u002Fcss-only-micro-interactions-animations\u002Fperformance-gpu-acceleration","Performance & GPU Acceleration in CSS: A Developer’s Blueprint",{"path":2233,"title":2234},"\u002Fcss-only-micro-interactions-animations\u002Fperformance-gpu-acceleration\u002Foptimizing-css-animations-for-60fps","Optimizing CSS Animations for 60fps: Budgeting the Frame",{"path":2236,"title":2237},"\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":2239,"title":2240},"\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":2242,"title":2243},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations","Scroll-Driven Animations: Binding Motion to Scroll Position in Pure CSS",{"path":2245,"title":2246},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations\u002Fscroll-driven-animation-fallbacks","Shipping Scroll-Driven Animations Without Breaking Anything",{"path":2248,"title":2249},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations\u002Fscroll-driven-parallax-effects","Scroll-Driven Parallax Effects in CSS",{"path":2251,"title":2252},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations\u002Fscroll-progress-bar-without-javascript","A Reading Progress Bar Driven by scroll(root)",{"path":2254,"title":2255},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations\u002Fscroll-triggered-reveal-animations","Reveal-on-Scroll with view() and animation-range",{"path":2257,"title":2258},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations\u002Ftimeline-scope-for-cross-element-animations","timeline-scope for Cross-Element Animations",{"path":2260,"title":2261},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations\u002Fview-timeline-and-animation-range","View Timelines and animation-range",{"path":2263,"title":2264},"\u002Fcss-only-micro-interactions-animations\u002Fview-transitions-for-css-developers\u002Fcross-document-view-transitions","Cross-Document View Transitions",{"path":2266,"title":2267},"\u002Fcss-only-micro-interactions-animations\u002Fview-transitions-for-css-developers","View Transitions for CSS Developers: the Pseudo-Element Tree, Snapshots, and Named Elements",{"path":2269,"title":2270},"\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":2272,"title":2273},"\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":2275,"title":2276},"\u002Fcss-only-micro-interactions-animations\u002Fview-transitions-for-css-developers\u002Fview-transition-types-and-classes","View Transition Types and Classes",{"path":2278,"title":2279},"\u002Fcss-only-micro-interactions-animations\u002Fview-transitions-for-css-developers\u002Fview-transitions-for-list-reordering","View Transitions for List Reordering",{"path":2281,"title":2282},"\u002Fcss-only-micro-interactions-animations\u002Fview-transitions-for-css-developers\u002Fview-transitions-with-reduced-motion","Honouring prefers-reduced-motion in View Transitions",{"path":403,"title":2284},"Modern CSS Layouts & Micro-Interactions",{"path":2286,"title":2287},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays\u002Fanchor-positioned-tooltips","Anchor-Positioned Tooltips: Tethering, Flipping, and Getting the Semantics Right",{"path":2289,"title":2290},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays\u002Fanchor-positioning-fallbacks","Anchor Positioning Fallbacks: A Graceful Floor for Older Browser Versions",{"path":2292,"title":2293},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays\u002Fanchor-size-for-matching-widths","anchor-size(): Overlays That Match Their Trigger's Size",{"path":2295,"title":2296},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays","CSS Anchor Positioning and Overlays: Tethering Elements Without JavaScript",{"path":2298,"title":2299},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays\u002Fpopover-attribute-and-css-styling","The popover Attribute: Top-Layer Overlays With No JavaScript",{"path":2301,"title":2302},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays\u002Fpopover-light-dismiss-and-stacking","Popover Light Dismiss, Nesting and Stacking",{"path":2304,"title":2305},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays\u002Fposition-area-grid-explained","position-area: The Anchor Placement Grid",{"path":2307,"title":2308},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks\u002Fcontainer-query-polyfill-tradeoffs","Container Query Polyfills: What They Cost and When to Skip Them",{"path":2310,"title":2311},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks\u002Ffeature-detection-with-supports","Feature Detection with @supports: Syntax, Semantics, and the Traps",{"path":2313,"title":2314},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks\u002Fhandling-container-query-fallbacks-for-older-browsers","Handling Container Query Fallbacks for Older Browsers",{"path":2316,"title":2317},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks","Container Query Fallbacks: Spec-Compliant CSS Strategies for Legacy Browsers",{"path":2319,"title":2320},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks\u002Fintrinsic-layout-fallbacks-without-queries","Intrinsic Layout Fallbacks: Baselines That Adapt Without Any Query",{"path":2322,"title":2323},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks\u002Ftesting-fallbacks-without-old-browsers","Testing CSS Fallbacks Without an Old Browser",{"path":2325,"title":2326},"\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":2328,"title":2329},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-syntax-basics\u002Fcontainer-query-range-and-logic-operators","Container Query Range Syntax and Logic Operators",{"path":2331,"title":2332},"\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":2334,"title":2335},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-syntax-basics\u002Fcontainer-type-size-vs-inline-size","Choosing container-type: inline-size, size, or normal",{"path":2337,"title":2338},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-syntax-basics\u002Fcontainer-vs-media-queries-comparison","Container vs Media Queries: Choosing the Right Reference Box",{"path":2340,"title":2341},"\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":2343,"title":2344},"\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":2346,"title":2347},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-syntax-basics","Container Query Syntax Basics",{"path":2349,"title":2350},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-syntax-basics\u002Fnesting-and-naming-container-queries","Nesting and Naming Container Queries: Targeting the Right Ancestor",{"path":2352,"title":2353},"\u002Fmastering-container-queries-responsive-layouts\u002Fcss-grid-and-subgrid-layouts\u002Fauto-fit-minmax-responsive-grids","Responsive Grids with repeat(auto-fit, minmax())",{"path":2355,"title":2356},"\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":2358,"title":2359},"\u002Fmastering-container-queries-responsive-layouts\u002Fcss-grid-and-subgrid-layouts\u002Fgrid-auto-flow-dense-packing","grid-auto-flow: dense for Packed Layouts",{"path":2361,"title":2362},"\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":2364,"title":2365},"\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":2367,"title":2368},"\u002Fmastering-container-queries-responsive-layouts\u002Fcss-grid-and-subgrid-layouts","CSS Grid and Subgrid Layouts for Responsive Interfaces",{"path":2370,"title":2371},"\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":2373,"title":2374},"\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":2376,"title":2377},"\u002Fmastering-container-queries-responsive-layouts\u002Fcss-grid-and-subgrid-layouts\u002Fsubgrid-vs-nested-grid","Subgrid vs an Independently Nested Grid",{"path":2379,"title":2380},"\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":2382,"title":2383},"\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":2385,"title":2386},"\u002Fmastering-container-queries-responsive-layouts\u002Fflexbox-layout-patterns\u002Fflex-grow-and-flex-shrink-explained","flex-grow and flex-shrink Explained",{"path":2388,"title":2389},"\u002Fmastering-container-queries-responsive-layouts\u002Fflexbox-layout-patterns\u002Fflex-wrap-intrinsic-responsive-rows","Breakpoint-Free Responsive Rows With flex-wrap and flex-basis",{"path":2391,"title":2392},"\u002Fmastering-container-queries-responsive-layouts\u002Fflexbox-layout-patterns\u002Fflexbox-gap-and-spacing","Flexbox gap vs Margins: Spacing Items Without Edge Hacks",{"path":2394,"title":2395},"\u002Fmastering-container-queries-responsive-layouts\u002Fflexbox-layout-patterns","Flexbox Layout Patterns: One-Dimensional Layout for Real Components",{"path":2397,"title":2398},"\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":2400,"title":2401},"\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":2403,"title":2404},"\u002Fmastering-container-queries-responsive-layouts\u002Ffluid-typography-with-clamp\u002Fdebugging-clamp-values","Debugging clamp(): Values That Are Ignored, Stuck or Never Fluid",{"path":2406,"title":2407},"\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":2409,"title":2410},"\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":2412,"title":2413},"\u002Fmastering-container-queries-responsive-layouts\u002Ffluid-typography-with-clamp\u002Ffluid-type-accessibility-and-zoom","Fluid Type, Accessibility and Zoom: The vw-Only Trap",{"path":2415,"title":2416},"\u002Fmastering-container-queries-responsive-layouts\u002Ffluid-typography-with-clamp\u002Ffluid-typography-without-javascript","Fluid Typography Without JavaScript: A Precision CSS Reference",{"path":2418,"title":2419},"\u002Fmastering-container-queries-responsive-layouts\u002Ffluid-typography-with-clamp","Fluid Typography with clamp(): A Practical Guide for Modern CSS",{"path":2421,"title":2422},"\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":2424,"title":2425},"\u002Fmastering-container-queries-responsive-layouts","Mastering Container Queries & Responsive Layouts",{"path":2427,"title":2428},"\u002Fmastering-container-queries-responsive-layouts\u002Fintrinsic-sizing-techniques\u002Faspect-ratio-for-responsive-media","Using aspect-ratio for Responsive Media and Preventing Layout Shift",{"path":2430,"title":2431},"\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":2433,"title":2434},"\u002Fmastering-container-queries-responsive-layouts\u002Fintrinsic-sizing-techniques","Intrinsic Sizing Techniques: Modern CSS Layouts for Responsive UI",{"path":2436,"title":2437},"\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":2439,"title":2440},"\u002Fmastering-container-queries-responsive-layouts\u002Fintrinsic-sizing-techniques\u002Fmin-max-fit-content-explained","min-content, max-content, and fit-content() Explained",{"path":2442,"title":2443},"\u002Fmastering-container-queries-responsive-layouts\u002Fintrinsic-sizing-techniques\u002Fobject-fit-and-object-position","object-fit and object-position: Images That Fit Any Box",{"path":2445,"title":2446},"\u002Fmastering-container-queries-responsive-layouts\u002Fintrinsic-sizing-techniques\u002Fpreventing-flex-and-grid-overflow","The min-width: auto Trap in Flex and Grid Layouts",{"path":2448,"title":2449},"\u002Fmastering-container-queries-responsive-layouts\u002Fmodern-css-reset-strategies\u002Fcascade-layers-for-reset-and-tokens","Cascade Layers for Reset and Design Tokens",{"path":2451,"title":2452},"\u002Fmastering-container-queries-responsive-layouts\u002Fmodern-css-reset-strategies\u002Fcascade-layers-vs-specificity-hacks","Cascade Layers vs Specificity Hacks: Ordering Instead of Escalating",{"path":2454,"title":2455},"\u002Fmastering-container-queries-responsive-layouts\u002Fmodern-css-reset-strategies\u002Fcss-scope-for-component-styles","@scope for Component Styles: Short Selectors That Cannot Leak",{"path":2457,"title":2458},"\u002Fmastering-container-queries-responsive-layouts\u002Fmodern-css-reset-strategies","Modern CSS Reset Strategies: A Spec-Compliant Foundation",{"path":2460,"title":2461},"\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":2463,"title":2464},"\u002Fmastering-container-queries-responsive-layouts\u002Fmodern-css-reset-strategies\u002Fwriting-a-minimal-modern-reset","Writing a Minimal Modern CSS Reset: Every Line Justified",{"path":2466,"title":2467},"\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":2469,"title":2470},"\u002Fmastering-container-queries-responsive-layouts\u002Fparent-aware-layouts-with-has\u002Fempty-and-loading-states-with-has","Empty and Loading States With ()",{"path":2472,"title":2473},"\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":2475,"title":2476},"\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":2478,"title":2479},"\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":2481,"title":2482},"\u002Fmastering-container-queries-responsive-layouts\u002Fparent-aware-layouts-with-has","Parent-Aware Layouts With :has(): Letting Containers React to Their Contents",{"path":2484,"title":2485},"\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":2487,"title":2488},"\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":2490,"title":2491},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Fcontainer-query-data-tables","Container Query Data Tables: Reflowing Tables to Cards",{"path":2493,"title":2494},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Fcontainer-query-sidebar-layouts","Container Query Sidebar Layouts That Travel Between Contexts",{"path":2496,"title":2497},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns","Responsive Component Patterns: Architecture & Implementation",{"path":2499,"title":2500},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Fresponsive-forms-with-container-queries","Responsive Forms with Container Queries: Reflow Without Losing the Wiring",{"path":2502,"title":2503},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Fresponsive-hero-sections-with-container-queries","Responsive Hero Sections With Container Queries",{"path":2505,"title":2506},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Fresponsive-navigation-without-media-queries","Responsive Navigation Without Media Queries Using Container Queries",{"path":2508,"title":2509},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Fresponsive-pricing-tables","Responsive Pricing Tables: Aligned Features, a Clear Recommendation, Any Width",{"path":2511,"title":2512},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Ftabs-that-become-accordions","Tabs That Become an Accordion: One Component, Two Layouts",{"path":2514,"title":2515},"\u002Fmastering-container-queries-responsive-layouts\u002Fscroll-snap-and-overflow-layouts\u002Fcss-only-carousel-with-scroll-snap","A CSS-Only Carousel With Scroll Snap",{"path":2517,"title":2518},"\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":2520,"title":2521},"\u002Fmastering-container-queries-responsive-layouts\u002Fscroll-snap-and-overflow-layouts","Scroll Snap & Overflow Layouts: Designing Components That Scroll on Purpose",{"path":2523,"title":2524},"\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":2526,"title":2527},"\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":2529,"title":2530},"\u002Fmastering-container-queries-responsive-layouts\u002Fstyle-queries-and-container-state\u002Fcombining-size-and-style-queries","Combining Size and Style Container Queries",{"path":2532,"title":2533},"\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":2535,"title":2536},"\u002Fmastering-container-queries-responsive-layouts\u002Fstyle-queries-and-container-state","Style Queries and Container State: Token-Driven Component Variants",{"path":2538,"title":2539},"\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":2541,"title":2542},"\u002Fmastering-container-queries-responsive-layouts\u002Fstyle-queries-and-container-state\u002Fstyle-query-component-variants","Component Variants With Style Queries: One Token, Many Looks",{"path":2544,"title":2545},"\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":2547,"title":2548},"\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":2550,"title":2551},"\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":2553,"title":2554},"\u002Fmastering-container-queries-responsive-layouts\u002Fviewport-units-and-mobile-layout","Viewport Units & Mobile Layout: Designing for the Screen You Actually Get",{"path":2556,"title":2557},"\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":2559,"title":2560},"\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":2562,"title":2563},"\u002Fmastering-container-queries-responsive-layouts\u002Fviewport-units-and-mobile-layout\u002Fvirtual-keyboard-and-interactive-widget","Layouts That Survive the Virtual Keyboard",{"title":2565,"caption":2566,"height":2567,"html":2568,"css":2569},"Sprite, typewriter and ticking hand with steps()","The sprite cycles eight frames, the line types itself one character per step, and the red hand jumps once a second.",300,"\n\u003Cdiv class=\"sprite\" role=\"img\" aria-label=\"Walking character\">\u003C\u002Fdiv>\n\u003Cp class=\"typed\">Deploy finished in 42s.\u003C\u002Fp>\n\u003Cdiv class=\"dial\" role=\"img\" aria-label=\"Seconds dial\">\u003Cspan class=\"hand\">\u003C\u002Fspan>\u003C\u002Fdiv>","\nbody { display: grid; gap: 1.25rem; justify-items: start; align-content: center; }\n.sprite {\n  width: 48px;\n  height: 48px;\n  background-image: repeating-linear-gradient(to right, #4f46e5 0 12px, #818cf8 12px 24px, #c7d2fe 24px 36px, #e0e7ff 36px 48px);\n  background-size: 384px 48px;\n  animation: walk 0.8s steps(8) infinite;\n}\n@keyframes walk { to { background-position: -384px 0; } }\n.typed {\n  margin: 0;\n  font: 1.25rem\u002F1.4 ui-monospace, monospace;\n  width: 23ch;\n  white-space: nowrap;\n  overflow: hidden;\n  border-inline-end: 2px solid currentColor;\n  animation: type 2.3s steps(23) 0.4s both, caret 0.8s step-end infinite;\n}\n@keyframes type { from { width: 0; } }\n@keyframes caret { 50% { border-color: transparent; } }\n.dial { position: relative; width: 6rem; height: 6rem; border: 2px solid currentColor; border-radius: 50%; }\n.hand { position: absolute; left: calc(50% - 1px); top: 10%; width: 2px; height: 40%; background: #dc2626; transform-origin: 50% 100%; animation: tick 60s steps(60) infinite; }\n@keyframes tick { to { rotate: 1turn; } }\n@media (prefers-reduced-motion: reduce) {\n  .sprite, .hand { animation: none; }\n  .typed { animation: none; border-inline-end-color: transparent; }\n}",1789717746715]