extensions/amp-carousel/0.1/carousel-controls.js
/**
   * Shows the controls and then fades them away.
   */
Shows the controls and then fades them away.
Shows the controls and then fades them away .
hintControls() {
    if (this.showControls_) {
      return;
    }
    Services.vsyncFor(this.win_).mutate(() => {
      const className = 'i-amphtml-carousel-button-start-hint';
      const hideAttribute = 'i-amphtml-carousel-hide-buttons';
      this.element_.classList.add(className);
      Services.timerFor(this.win_).delay(() => {
        const mutator = Services.mutatorForDoc(this.element_);
        mutator.measureMutateElement(this.element_,  null, () => {
          this.element_.classList.remove(className);
          toggleAttribute(this.element_, hideAttribute, !this.showControls_);
        });
      }, 4000);
    });
  }
hintControls ( ) { if ( this . showControls_ ) { return ; } Services . vsyncFor ( this . win_ ) . mutate ( ( ) => { const className = 'i-amphtml-carousel-button-start-hint' ; const hideAttribute = 'i-amphtml-carousel-hide-buttons' ; this . element_ . classList . add ( className ) ; Services . timerFor ( this . win_ ) . delay ( ( ) => { const mutator = Services . mutatorForDoc ( this . element_ ) ; mutator . measureMutateElement ( this . element_ , null , ( ) => { this . element_ . classList . remove ( className ) ; toggleAttribute ( this . element_ , hideAttribute , ! this . showControls_ ) ; } ) ; } , 4000 ) ; } ) ; }
Shows the controls and then fades them away.
Shows the controls and then fades them away .
/* measurer*/