MCPcopy Create free account
hub / github.com/bendc/animateplus / setSpeed

Function setSpeed

animateplus.js:275–276  ·  view source on GitHub ↗
(speed, value, index)

Source from the content-addressed store, hash-verified

273 duration > 0 ? Math.min(elapsed / duration, 1) : 1;
274
275const setSpeed = (speed, value, index) =>
276 speed > 0 ? computeValue(value, index) / speed : 0;
277
278const addAnimations = (options, resolve) => {
279 const {

Callers 1

addAnimationsFunction · 0.85

Calls 1

computeValueFunction · 0.85

Tested by

no test coverage detected