Files
NapCatQQ/.pnpm-store/v3/files/5d/924c47084a33ca02271c43ba4a3f8ba02ccbfcce57a7a64a54721c7ef8229a77c33e8d22853ea28ec05c5afd448a65fe170054cfc3efd212cd5a4410fe3300
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

6 lines
279 B
Plaintext

// Accepts an easing function and returns a new one that outputs mirrored values for
// the second half of the animation. Turns easeIn into easeInOut.
const mirrorEasing = (easing) => (p) => p <= 0.5 ? easing(2 * p) / 2 : (2 - easing(2 * (1 - p))) / 2;
export { mirrorEasing };