(frame)
| 55 | // ───────────────────────────────────────────────────────────── |
| 56 | |
| 57 | function pct(frame) { |
| 58 | // Frame → keyframe offset percentage, trimmed of noise. |
| 59 | return `${+((frame / TOTAL_FRAMES) * 100).toFixed(4)}%`; |
| 60 | } |
| 61 | |
| 62 | function cb(coeffs) { |
| 63 | return `cubic-bezier(${coeffs.join(',')})`; |