UNPKG

@drozdik.m/lerp

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