code: function (val) {
              var carousel = this;
  
              if (val >= 0 && val <= 100) {
                  val = parseInt(val, 10);
                  val = JS.isNumber(val) ? val : 0;
                  carousel._setClipContainerSize();
              } else {
                  val = carousel.get("revealAmount");
              }
              return val;
          }
docs: Set the value for the reveal amount percentage in the Carousel.
  
  @method _setRevealAmount
  @param val {Number} The new value for revealAmount
  @return {Number} The new value that would be set
  @protected