You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We had a discussion about this in the past @ericvicenti@satya164. To me, right now it looks similar to the default Android behaviour but still I think it is not as it is on Android. Specially when going back (exit animation).
// Standard Android navigation transition when opening an ActivityconstFadeInFromBottomAndroid=({// See http://androidxref.com/7.1.1_r6/xref/frameworks/base/core/res/res/anim/activity_open_enter.xmltransitionSpec: {duration: 350,easing: Easing.out(Easing.poly(5)),// deceleratetiming: Animated.timing,},screenInterpolator: CardStackStyleInterpolator.forFadeFromBottomAndroid,} : TransitionConfig);// Standard Android navigation transition when closing an ActivityconstFadeOutToBottomAndroid=({// See http://androidxref.com/7.1.1_r6/xref/frameworks/base/core/res/res/anim/activity_close_exit.xmltransitionSpec: {duration: 230,easing: Easing.in(Easing.poly(4)),// acceleratetiming: Animated.timing,},screenInterpolator: CardStackStyleInterpolator.forFadeFromBottomAndroid,} : TransitionConfig);
in
alpha: 200ms, decelerate_quart(2)
position: 350ms, decelerate_quint(2.5)
out
alpha: 150ms, linear, delay 150
position: 250ms, accelerate_quart(2.5)
First of all there are two animations (alpha and position) that run in parallel (with different durations and easing). I've been trying to replicate the values directly in Transitioner.js. Right now it looks like:
But I feel I am still missing something. Even that it uses Animated.parallel, it does not seem that the alpha one (the first one) is affecting at all. Actually, if I remove it completely from the array, I do not see any difference (I think). UPDATE: Instead of parallel I think we need Animated.stagger instead
What do you think? :)
The text was updated successfully, but these errors were encountered:
Update 1
This might be even more complicated checking the actual newest source:
activity_open_enter.xml
activity_open_exit.xml
activity_close_enter.xml
activity_close_exit.xml
Original
We had a discussion about this in the past @ericvicenti @satya164. To me, right now it looks similar to the default Android behaviour but still I think it is not as it is on Android. Specially when going back (exit animation).
This is the current implementation (TransitionConfig.js):
But when I check those links: http://androidxref.com/7.1.1_r6/xref/frameworks/base/core/res/res/anim/activity_open_enter.xml & http://androidxref.com/7.1.1_r6/xref/frameworks/base/core/res/res/anim/activity_close_exit.xml#26, I see a different configuration.
First of all there are two animations (alpha and position) that run in parallel (with different durations and easing). I've been trying to replicate the values directly in Transitioner.js. Right now it looks like:
I tried to replicate the config:
It looks like:
But I feel I am still missing something. Even that it uses
Animated.parallel
, it does not seem that the alpha one (the first one) is affecting at all. Actually, if I remove it completely from the array, I do not see any difference (I think). UPDATE: Instead of parallel I think we needAnimated.stagger
insteadWhat do you think? :)
The text was updated successfully, but these errors were encountered: