【发布时间】:2021-08-12 22:40:35
【问题描述】:
我想用 scaleY 放大动画以填充视图。问题是它从中心而不是底部开始。如何更改它以使动画从底部开始?
const fillAnim = {
0: {
transform: [{ scaleY: 0 }]
},
0.25: {
transform: [{ scaleY: 0 }]
},
0.5: {
transform: [{ scaleY: 1 }]
},
0.75: {
transform: [{ scaleY: 1 }]
},
1: {
transform: [{ scaleY: 0 }]
}
};
我正在为这个动画使用 react-native-animatable。
【问题讨论】:
-
这能回答你的问题吗? React Native Transform Origin
-
不,我尝试使用翻译技巧但没有任何改变。
标签: css react-native react-native-animatable