Files
JiboSDK/node_modules/eases/cubic-in-out.js
2026-03-22 03:21:45 +02:00

7 lines
141 B
JavaScript

function cubicInOut(t) {
return t < 0.5
? 4.0 * t * t * t
: 0.5 * Math.pow(2.0 * t - 2.0, 3.0) + 1.0
}
module.exports = cubicInOut