code: function (duration) {
      if (typeof duration !== 'string') {
        duration = duration + 'ms';
      }
  
      return this.each(function () {
        this.style.webkitTransitionDuration = duration;
        this.style.transitionDuration = duration;
      });
    }
docs: 设置 transition 时间
  @param duration