Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
269
const
resetTime = object =>
270
object.startTime = 0;
271
272
const
getProgress = ({elapsed, duration}) =>
273
duration > 0 ? Math.min(elapsed / duration, 1) : 1;
Callers
1
tick
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected