UNPKG

@drozdik.m/lerp

Version:
5 lines (4 loc) 191 B
exports.__esModule = true; exports.EaseOutExpo = function (from, to, currentFrame, totalFrames) { return (to - from) * (-Math.pow(2, -10 * currentFrame / totalFrames) + 1) + from; };