[AdsManager] Improve animation configurations
This commit is contained in:
parent
b05e99a531
commit
f8482411f9
|
@ -313,14 +313,14 @@ var FromTheFrontAndroid = {
|
||||||
opacity: {
|
opacity: {
|
||||||
from: 0,
|
from: 0,
|
||||||
to: 1,
|
to: 1,
|
||||||
min: 0,
|
min: 0.5,
|
||||||
max: 1,
|
max: 1,
|
||||||
type: 'linear',
|
type: 'linear',
|
||||||
extrapolate: false,
|
extrapolate: false,
|
||||||
round: 100,
|
round: 100,
|
||||||
},
|
},
|
||||||
transformTranslate: {
|
transformTranslate: {
|
||||||
from: {x: 0, y: 50, z: 0},
|
from: {x: 0, y: 100, z: 0},
|
||||||
to: {x: 0, y: 0, z: 0},
|
to: {x: 0, y: 0, z: 0},
|
||||||
min: 0,
|
min: 0,
|
||||||
max: 1,
|
max: 1,
|
||||||
|
@ -329,7 +329,7 @@ var FromTheFrontAndroid = {
|
||||||
round: PixelRatio.get(),
|
round: PixelRatio.get(),
|
||||||
},
|
},
|
||||||
translateY: {
|
translateY: {
|
||||||
from: 50,
|
from: 100,
|
||||||
to: 0,
|
to: 0,
|
||||||
min: 0,
|
min: 0,
|
||||||
max: 1,
|
max: 1,
|
||||||
|
@ -432,6 +432,8 @@ var NavigatorSceneConfigs = {
|
||||||
FloatFromBottomAndroid: {
|
FloatFromBottomAndroid: {
|
||||||
...BaseConfig,
|
...BaseConfig,
|
||||||
gestures: null,
|
gestures: null,
|
||||||
|
defaultTransitionVelocity: 3,
|
||||||
|
springFriction: 20,
|
||||||
animationInterpolators: {
|
animationInterpolators: {
|
||||||
into: buildStyleInterpolator(FromTheFrontAndroid),
|
into: buildStyleInterpolator(FromTheFrontAndroid),
|
||||||
out: buildStyleInterpolator(ToTheBackAndroid),
|
out: buildStyleInterpolator(ToTheBackAndroid),
|
||||||
|
|
Loading…
Reference in New Issue