UNPKG

@drozdik.m/lerp

Version:
7 lines (6 loc) 243 B
exports.__esModule = true; exports.EaseOutCubic = function (from, to, currentFrame, totalFrames) { currentFrame /= totalFrames; currentFrame--; return (to - from) * (currentFrame * currentFrame * currentFrame + 1) + from; };