Carousel

Carousel

Usage

<div style="width: 480px; max-width: 100%;">
<div class="slds-carousel" id="carousel-example-generic" data-ride="carousel">
  <div class="slds-carousel__stage">
    <span class="slds-carousel__autoplay">
      <button class="slds-button slds-button_icon slds-button_icon-border-filled slds-button_icon-x-small" aria-pressed="false" title="Stop auto-play">
        <svg class="slds-button__icon" aria-hidden="true">
          <use xlink:href="/lightning-ui/dist/icons/utility-sprite/svg/symbols.svg#pause"></use>
        </svg>
        <span class="slds-assistive-text">Stop auto-play</span>
      </button>
    </span>
    <div class="slds-carousel__panels" style="transform:translateX(-0%);">
      <div id="content-id-01" class="slds-carousel__panel" role="tabpanel" aria-hidden="true" aria-labelledby="indicator-id-01">
        <a href="javascript:void(0);" class="slds-carousel__panel-action slds-text-link_reset">
          <div class="slds-carousel__image">
            <img src="/lightning-ui/dist/images/carousel/carousel-01.jpg" alt="Visit App Exchange" />
          </div>
          <div class="slds-carousel__content">
            <h2 class="slds-carousel__content-title">Visit App Exchange</h2>
            <p>Extend Salesforce with the #1 business marketplace.</p>
          </div>
        </a>
      </div>
      <div id="content-id-02" class="slds-carousel__panel" role="tabpanel" aria-hidden="false" aria-labelledby="indicator-id-02">
        <a href="javascript:void(0);" class="slds-carousel__panel-action slds-text-link_reset">
          <div class="slds-carousel__image">
            <img src="/lightning-ui/dist/images/carousel/carousel-02.jpg" alt="Click to Customize" />
          </div>
          <div class="slds-carousel__content">
            <h2 class="slds-carousel__content-title">Click to Customize</h2>
            <p>Use the Object Manager to add fields, build layouts, and more.</p>
          </div>
        </a>
      </div>
      <div id="content-id-03" class="slds-carousel__panel" role="tabpanel" aria-hidden="false" aria-labelledby="indicator-id-03">
        <a href="javascript:void(0);" class="slds-carousel__panel-action slds-text-link_reset" >
          <div class="slds-carousel__image">
            <img src="/lightning-ui/dist/images/carousel/carousel-03.jpg" alt="Download SalesforceA" />
          </div>
          <div class="slds-carousel__content">
            <h2 class="slds-carousel__content-title">Download SalesforceA</h2>
            <p>Get the mobile app that&#x27;s just for Salesforce admins.</p>
          </div>
        </a>
      </div>
    </div>
    <ul class="slds-carousel__indicators" role="tablist">
      <li data-target="#carousel-example-generic" data-slide-to="0" class="slds-carousel__indicator" role="presentation">
        <a id="indicator-id-01" class="slds-carousel__indicator-action slds-is-active" href="#carousel-example-generic" role="tab" aria-selected="true" aria-controls="content-id-01" title="Visit App Exchange tab">
          <span class="slds-assistive-text">Visit App Exchange tab</span>
        </a>
      </li>
      <li data-target="#carousel-example-generic" data-slide-to="1" class="slds-carousel__indicator" role="presentation">
        <a id="indicator-id-02" class="slds-carousel__indicator-action" href="#carousel-example-generic" role="tab"  aria-selected="false" aria-controls="content-id-02" title="Click to Customize tab">
          <span class="slds-assistive-text">Click to Customize tab</span>
        </a>
      </li>
      <li data-target="#carousel-example-generic" data-slide-to="2" class="slds-carousel__indicator" role="presentation">
        <a id="indicator-id-03" class="slds-carousel__indicator-action" href="#carousel-example-generic" role="tab"  aria-selected="false" aria-controls="content-id-03" title="Download SalesforceA tab">
          <span class="slds-assistive-text">Download SalesforceA tab</span>
        </a>
      </li>
    </ul>
  </div>
</div>
</div>