UNPKG
animate-value
Version:
latest (1.1.0)
1.1.0
1.0.1
1.0.0
🏃 animates a numeric value
github.com/duivvv/animate-value
duivvv/animate-value
animate-value
/
es
/
lib
/
calc
/
calcStartEnd.js
9 lines
(6 loc)
•
178 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
import
now from '../time/now';
export
default
(
function
(
delay, duration
)
{ var
start
= delay + now
()
; var
end
=
start
+ duration;
return
{
start
:
start
,
end
:
end
}; }
)
;