使用方式同 wx.createAnimation

示例代码

  1. import Taro from '@tarojs/taro'
  2. const animation = Taro.createAnimation({
  3. transformOrigin: "50% 50%",
  4. duration: 1000,
  5. timingFunction: "ease",
  6. delay: 0
  7. })

API支持度

API 微信小程序 H5 React Native
Taro.createAnimation ✔️ ✔️