【发布时间】:2016-09-30 05:01:37
【问题描述】:
How to make this transform with React-Native?
我想要这个静态位置
constructor(props) {
super(props);
this.state={
loaded:false,
transform:[{ perspective: 0 },
{ translateX: width },
{ rotateY: '0deg'}],
isMenuOpen:false,
}
}
动画到这个位置
Animated.timing(
this.state.transform,
{toValue:[{ perspective: 850 },
{ translateX: -width * 0.24 },
{ rotateY: '60deg'}]},
).start();
动画代码怎么写?
【问题讨论】:
标签: animation react-native transform