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

Function resetTime

animateplus.js:269–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267};
268
269const resetTime = object =>
270 object.startTime = 0;
271
272const getProgress = ({elapsed, duration}) =>
273 duration > 0 ? Math.min(elapsed / duration, 1) : 1;

Callers 1

tickFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected