From 90cac692b4e0a629d1d8be9ea973736aa1a71939 Mon Sep 17 00:00:00 2001 From: Pablo Velez Vidal Date: Sat, 29 Oct 2022 00:12:41 +0200 Subject: [PATCH] improve the animations for image and text --- app/screens/onboarding/slide.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/screens/onboarding/slide.tsx b/app/screens/onboarding/slide.tsx index 6851b5074..78c3b69d6 100644 --- a/app/screens/onboarding/slide.tsx +++ b/app/screens/onboarding/slide.tsx @@ -59,17 +59,17 @@ const SlideItem = ({theme, item, scrollX, index}: Props) => { const translateImage = scrollX.interpolate({ inputRange, - outputRange: [width * 0.7, 1, -width * 0.7], + outputRange: [width * 2, 0, -width * 2], }); const translateTitle = scrollX.interpolate({ inputRange, - outputRange: [width * 0.5, 1, -width * 0.5], + outputRange: [width * 0.6, 0, -width * 0.6], }); const translateDescription = scrollX.interpolate({ inputRange, - outputRange: [width * 0.3, 1, -width * 0.3], + outputRange: [width * 0.2, 0, -width * 0.2], }); return (