MCPcopy Index your code
hub / github.com/bendc/animateplus / getProgress

Function getProgress

animateplus.js:272–273  ·  view source on GitHub ↗
({elapsed, duration})

Source from the content-addressed store, hash-verified

270 object.startTime = 0;
271
272const getProgress = ({elapsed, duration}) =>
273 duration > 0 ? Math.min(elapsed / duration, 1) : 1;
274
275const setSpeed = (speed, value, index) =>
276 speed > 0 ? computeValue(value, index) / speed : 0;

Callers 1

tickFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected