modify animation times so it looks better and make slighter animation for ios
This commit is contained in:
parent
96001c3553
commit
b8535c09bd
2 changed files with 5 additions and 4 deletions
|
|
@ -100,6 +100,7 @@ const Onboarding = ({
|
|||
style={styles.scrollContainer}
|
||||
>
|
||||
<Animated.ScrollView
|
||||
scrollEventThrottle={16}
|
||||
horizontal={true}
|
||||
showsHorizontalScrollIndicator={false}
|
||||
pagingEnabled={true}
|
||||
|
|
|
|||
|
|
@ -77,11 +77,11 @@ const SlideItem = ({theme, item, scrollX, index}: Props) => {
|
|||
|
||||
useEffect(() => {
|
||||
if (index === FIRST_SLIDE) {
|
||||
initialImagePosition.value = withTiming(0, {duration: 500});
|
||||
initialTitlePosition.value = withTiming(0, {duration: 700});
|
||||
initialDescriptionPosition.value = withTiming(0, {duration: 900});
|
||||
initialImagePosition.value = withTiming(0, {duration: 600});
|
||||
initialTitlePosition.value = withTiming(0, {duration: 800});
|
||||
initialDescriptionPosition.value = withTiming(0, {duration: 1000});
|
||||
|
||||
initialElementsOpacity.value = withTiming(1, {duration: 900});
|
||||
initialElementsOpacity.value = withTiming(1, {duration: 1000});
|
||||
setFirstLoad(false);
|
||||
}
|
||||
}, []);
|
||||
|
|
|
|||
Loading…
Reference in a new issue