- Taro.createAnimation(OBJECT)
- 示例代码
- API支持度
Taro.createAnimation(OBJECT)
使用方式同 wx.createAnimation。
示例代码
import Taro from '@tarojs/taro'const animation = Taro.createAnimation({transformOrigin: "50% 50%",duration: 1000,timingFunction: "ease",delay: 0})
API支持度
| API | 微信小程序 | H5 | React Native |
|---|---|---|---|
| Taro.createAnimation | ✔️ | ✔️ |
