UNPKG

@drozdik.m/lerp

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