diff --git a/src/animation.ts b/src/animation.ts index f7af604..7817374 100644 --- a/src/animation.ts +++ b/src/animation.ts @@ -15,7 +15,10 @@ const defaultVariant = { * @param formY * @param toY */ -const generateFadeInFromTop = (formY = 20, toY = 40): TAnimationConfig => { +const generateFadeInFromTop = ( + formY = 20, + toY: number | string = 'calc(40px + env(safe-area-inset-top))' +): TAnimationConfig => { return { ...defaultVariant, variants: {