setTransition(name, duration, params) {
    if (typeof name === 'object') {
      if (duration === undefined) {
        name = name.name;
        duration = name.duration;
        params = name.params;
      } else {
        FFLogger.error({
          pos: 'FFScene::setTransition',
          error: 'The first parameter is not of type object.',
        });
      }
    }

    this.transition = new FFTransition({ name, duration, params });
  }
Set scene transition animation
@param {string|object} name - transition animation name or animation conf object
@param {number} duration - transition animation duration
@param {object} params - transition animation params
@public