(name, c, total)
| 124 | const op = v => `opacity:${v};`; |
| 125 | |
| 126 | function 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 |
no test coverage detected