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

Function createStyles

animateplus.js:242–246  ·  view source on GitHub ↗
(keyframes, easing)

Source from the content-addressed store, hash-verified

240 });
241
242const createStyles = (keyframes, easing) =>
243 keyframes.reduce((styles, {property, numbers, strings, round}) => {
244 styles[property] = recomposeValue(numbers, strings, round, easing);
245 return styles;
246 }, {});
247
248const reverseKeyframes = keyframes =>
249 keyframes.forEach(({numbers}) => numbers.reverse());

Callers 1

tickFunction · 0.85

Calls 1

recomposeValueFunction · 0.85

Tested by

no test coverage detected