UNPKG

@drozdik.m/lerp

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