class WXAnimationModule extends WXModule {

  @JSMethod
  public void transition(@Nullable String ref, @Nullable JSONObject animation, @Nullable String callBack) {
    if (!TextUtils.isEmpty(ref) && animation != null && mWXSDKInstance != null) {
      DOMAction animationActions = getAnimationAction(ref, animation, callBack);
      //Due to animation module rely on the result of the css-layout and the batch mechanism of
      //css-layout, the animation.transition must be delayed the batch time.
      WXSDKManager.getInstance().getWXDomManager().postActionDelay(mWXSDKInstance.getInstanceId(),
                                                                   animationActions,
                                                                   false, WXDomHandler.DELAY_TIME);
    }
  }

}