UNPKG
@drozdik.m/lerp
Version:
latest (1.0.1)
1.0.1
1.0.0
Collection of lerp functions.
github.com/drozdik-m/js-alpha-library
drozdik-m/js-alpha-library
@drozdik.m/lerp
/
dist
/
EaseOutCirc.js
7 lines
(6 loc)
•
236 B
JavaScript
View Raw
1
2
3
4
5
6
7
exports
.
__esModule
=
true
;
exports
.
EaseOutCirc
=
function
(
from
, to, currentFrame, totalFrames
) { currentFrame /= totalFrames; currentFrame--;
return
(to -
from
) *
Math
.
sqrt
(
1
- currentFrame * currentFrame) +
from
; };