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

Function cellYKeyframes

packages/@react-spectrum/ai/src/loader/react.tsx:126–139  ·  view source on GitHub ↗
(name, c, total)

Source from the content-addressed store, hash-verified

124const op = v => `opacity:${v};`;
125
126function cellYKeyframes(name, c, total) {
127 const s = c.stagger;
128 const e = exitStartOf(c);
129 const stops: Stop[] = [{f: 0, decl: ty(Y_START), ease: s > 0 ? null : EASE.drop}];
130 if (s > 0) {
131 stops.push({f: s, decl: ty(Y_START), ease: EASE.drop});
132 }
133 stops.push({f: s + 10, decl: ty(Y_OVERSHOOT), ease: EASE.recover});
134 stops.push({f: s + DROP_SETTLE, decl: ty(0)}); // settled — hold until exit
135 stops.push({f: e, decl: ty(0), ease: EASE.exit});
136 stops.push({f: e + EXIT_FALL, decl: ty(Y_EXIT)});
137 stops.push({f: total, decl: ty(Y_EXIT)}); // hold offscreen until wrap
138 return emitKeyframes(name, stops, total);
139}
140
141// Per-cell scale pop, applied to the inner cell element (transform-origin
142// center, so no layout shift). The entrance completes ENT_LEAD frames before

Callers 1

keyframesForFunction · 0.85

Calls 4

exitStartOfFunction · 0.85
tyFunction · 0.85
emitKeyframesFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected