Taro.createAnimation(OBJECT)

使用方式同 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微信小程序H5React Native
Taro.createAnimation✔️✔️