diff --git a/src/index.ts b/src/index.ts index 5ca4c68..351db11 100644 --- a/src/index.ts +++ b/src/index.ts @@ -53,6 +53,12 @@ export type easingFunctionsType = { CurveMethod: (x: number, accentuation?: number) => number; }; +/* + * Easing functions modified to work with an accentuation parameter that exaggerates the curve + * the accentuation parameter is a number between 0 and 1 but was not tested very thoroughly + * can probably be improved by chaning how the accentuation is applied in each type of easing function + * https://gist.github.com/gre/1650294 + */ export const easingFunctions = { linear: (x: number): number => x, easeInSine: (x: number, accentuation = 0): number =>