MCPcopy Create free account
hub / github.com/adobe/react-spectrum / loopFramesFor

Function loopFramesFor

packages/@react-spectrum/ai/src/loader/react.tsx:71–77  ·  view source on GitHub ↗
(cells: Cell[])

Source from the content-addressed store, hash-verified

69// Loop length grows with the icon's stagger spread so every cell gets the
70// same settle → hold → exit cadence.
71function loopFramesFor(cells: Cell[]): number {
72 let maxStagger = 1;
73 for (const c of cells) {
74 maxStagger = Math.max(maxStagger, c.stagger);
75 }
76 return maxStagger + DROP_SETTLE + HOLD_FRAMES + EXIT_FALL;
77}
78
79// The animation lives in a fixed VIEWBOX-sized coordinate space that is scaled down to the
80// rendered `size`. Cells are absolutely positioned in this space, so all

Callers 2

keyframesForFunction · 0.85
PixelLoaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected