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

Function decomposeEasing

animateplus.js:194–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192};
193
194const decomposeEasing = string => {
195 const [easing, amplitude = 1, period = .4] = string.trim().split(" ");
196 return {easing, amplitude, period};
197};
198
199const ease = ({easing, amplitude, period}, progress) =>
200 easings[easing](progress, amplitude, period);

Callers 1

addAnimationsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected