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