diff --git a/src/app/animation.ts b/src/app/animation.ts index 7fe49c6..8a127a6 100644 --- a/src/app/animation.ts +++ b/src/app/animation.ts @@ -26,18 +26,18 @@ export const fadeIn = animation( { params: { time: '1000ms', start: 1, end: 0, zIndex: 0 } } ); -export const easingFn: EasingLogic = ( +export function easingFn ( t: number, b: number, c: number, d: number -): number => { +): number { if ((t /= d / 2) < 1) { return (c / 2) * t * t * t * t + b; } else { return (-c / 2) * ((t -= 2) * t * t * t - 2) + b; } -}; +} export const animations = [ trigger('fadeInOut', [