(frame, total)
| 91 | // ───────────────────────────────────────────────────────────── |
| 92 | |
| 93 | function pct(frame, total) { |
| 94 | // Frame → keyframe offset percentage, trimmed of noise. |
| 95 | return `${+((frame / total) * 100).toFixed(4)}%`; |
| 96 | } |
| 97 | |
| 98 | function cb(coeffs) { |
| 99 | return `cubic-bezier(${coeffs.join(',')})`; |