<div class="glide hgm-card-carousel" data-bg-color="#F2F2F2" data-carousel-per-view="4">
    <div class="container">
        <div class="hgm-card-carousel__header row">
            <div class="col-sm-12">
                <h3>Card Carousel (Four Cards - No Images)</h3>
                <p>Add a header or some messaging about this carousel content to clue users in on what they are seeing.</p>
            </div>
            <div class="col-sm-12">
                <a href="#" title="Learn more">View more&nbsp;<i class="fa-solid fa-chevron-right"></i></a>
            </div>
        </div><!-- &__header -->
        <div class="glide__track" data-glide-el="track">
            <ul class="glide__slides">
                <li class="glide__slide">
                    <div class="hgm-card-carousel__slide-component">
                        <div class="hgm-card">
                            <div class="hgm-card__body">
                                <h4>Card Title Goes Here</h4>
                                <p>Some quick example text to build on the card title and make up the bulk of the card's content.</p>
                                <button type="button" class="hgm-button">Some Label</button>
                                <button type="button" class="hgm-button ghost">Some Label</button>
                            </div>
                        </div>
                    </div><!-- &__slide-component -->
                </li>
                <li class="glide__slide">
                    <div class="hgm-card-carousel__slide-component">
                        <div class="hgm-card">
                            <div class="hgm-card__body">
                                <h4>Card Title Goes Here</h4>
                                <p>Some quick example text to build on the card title and make up the bulk of the card's content.</p>
                                <button type="button" class="hgm-button">Some Label</button>
                                <button type="button" class="hgm-button ghost">Some Label</button>
                            </div>
                        </div>
                    </div><!-- &__slide-component -->
                </li>
                <li class="glide__slide">
                    <div class="hgm-card-carousel__slide-component">
                        <div class="hgm-card">
                            <div class="hgm-card__body">
                                <h4>Card Title Goes Here</h4>
                                <p>Some quick example text to build on the card title and make up the bulk of the card's content.</p>
                                <button type="button" class="hgm-button">Some Label</button>
                                <button type="button" class="hgm-button ghost">Some Label</button>
                            </div>
                        </div>
                    </div><!-- &__slide-component -->
                </li>
                <li class="glide__slide">
                    <div class="hgm-card-carousel__slide-component">
                        <div class="hgm-card">
                            <div class="hgm-card__body">
                                <h4>Card Title Goes Here</h4>
                                <p>Some quick example text to build on the card title and make up the bulk of the card's content.</p>
                                <button type="button" class="hgm-button">Some Label</button>
                                <button type="button" class="hgm-button ghost">Some Label</button>
                            </div>
                        </div>
                    </div><!-- &__slide-component -->
                </li>
                <li class="glide__slide">
                    <div class="hgm-card-carousel__slide-component">
                        <div class="hgm-card">
                            <div class="hgm-card__body">
                                <h4>Card Title Goes Here</h4>
                                <p>Some quick example text to build on the card title and make up the bulk of the card's content.</p>
                                <button type="button" class="hgm-button">Some Label</button>
                                <button type="button" class="hgm-button ghost">Some Label</button>
                            </div>
                        </div>
                    </div><!-- &__slide-component -->
                </li>
            </ul>
        </div>
        <div class="hgm-card-carousel__footer row">
            <div class="glide__bullets col-md-8" data-glide-el="controls[nav]">
                <button class="glide__bullet" data-glide-dir="=0"></button>
                <button class="glide__bullet" data-glide-dir="=1"></button>
                <button class="glide__bullet" data-glide-dir="=2"></button>
                <button class="glide__bullet" data-glide-dir="=3"></button>
                <button class="glide__bullet" data-glide-dir="=4"></button>
            </div><!-- &__bullets -->
            <div class="glide__arrows col-md-4" data-glide-el="controls">
                <button class="glide__arrow glide__arrow--left" data-glide-dir="<"><span class="sr-only">previous</span>
                </button>
                <button class="glide__arrow glide__arrow--right" data-glide-dir=">"><span class="sr-only">next</span></button>
            </div><!-- &__arrows -->
        </div><!-- &__footer -->
    </div><!-- container -->
</div><!-- hgm-card-carousel -->
<div class="glide hgm-card-carousel" data-bg-color="#F2F2F2" data-carousel-per-view="4">
  <div class="container">
    <div class="hgm-card-carousel__header row">
      <div class="col-sm-12">
        <h3>Card Carousel (Four Cards - No Images)</h3>
        <p>Add a header or some messaging about this carousel content to clue users in on what they are seeing.</p>
      </div>
      <div class="col-sm-12">
        <a href="#" title="Learn more">View more&nbsp;<i
            class="fa-solid fa-chevron-right"
          ></i></a>
      </div>
    </div><!-- &__header -->
    <div class="glide__track" data-glide-el="track">
      <ul class="glide__slides">
        <li class="glide__slide">
          <div class="hgm-card-carousel__slide-component">
            <div class="hgm-card">
              <div class="hgm-card__body">
                <h4>Card Title Goes Here</h4>
                <p>Some quick example text to build on the card title and make up the bulk of the card's content.</p>
                <button type="button" class="hgm-button">Some Label</button>
                <button type="button" class="hgm-button ghost">Some Label</button>
              </div>
            </div>
          </div><!-- &__slide-component -->
        </li>
        <li class="glide__slide">
          <div class="hgm-card-carousel__slide-component">
            <div class="hgm-card">
              <div class="hgm-card__body">
                <h4>Card Title Goes Here</h4>
                <p>Some quick example text to build on the card title and make up the bulk of the card's content.</p>
                <button type="button" class="hgm-button">Some Label</button>
                <button type="button" class="hgm-button ghost">Some Label</button>
              </div>
            </div>
          </div><!-- &__slide-component -->
        </li>
        <li class="glide__slide">
          <div class="hgm-card-carousel__slide-component">
            <div class="hgm-card">
              <div class="hgm-card__body">
                <h4>Card Title Goes Here</h4>
                <p>Some quick example text to build on the card title and make up the bulk of the card's content.</p>
                <button type="button" class="hgm-button">Some Label</button>
                <button type="button" class="hgm-button ghost">Some Label</button>
              </div>
            </div>
          </div><!-- &__slide-component -->
        </li>
        <li class="glide__slide">
          <div class="hgm-card-carousel__slide-component">
            <div class="hgm-card">
              <div class="hgm-card__body">
                <h4>Card Title Goes Here</h4>
                <p>Some quick example text to build on the card title and make up the bulk of the card's content.</p>
                <button type="button" class="hgm-button">Some Label</button>
                <button type="button" class="hgm-button ghost">Some Label</button>
              </div>
            </div>
          </div><!-- &__slide-component -->
        </li>
        <li class="glide__slide">
          <div class="hgm-card-carousel__slide-component">
            <div class="hgm-card">
              <div class="hgm-card__body">
                <h4>Card Title Goes Here</h4>
                <p>Some quick example text to build on the card title and make up the bulk of the card's content.</p>
                <button type="button" class="hgm-button">Some Label</button>
                <button type="button" class="hgm-button ghost">Some Label</button>
              </div>
            </div>
          </div><!-- &__slide-component -->
        </li>
      </ul>
    </div>
    <div class="hgm-card-carousel__footer row">
      <div class="glide__bullets col-md-8" data-glide-el="controls[nav]">
        <button class="glide__bullet" data-glide-dir="=0"></button>
        <button class="glide__bullet" data-glide-dir="=1"></button>
        <button class="glide__bullet" data-glide-dir="=2"></button>
        <button class="glide__bullet" data-glide-dir="=3"></button>
        <button class="glide__bullet" data-glide-dir="=4"></button>
      </div><!-- &__bullets -->
      <div class="glide__arrows col-md-4" data-glide-el="controls">
        <button class="glide__arrow glide__arrow--left" data-glide-dir="<"><span
            class="sr-only"
          >previous</span>
        </button>
        <button
          class="glide__arrow glide__arrow--right"
          data-glide-dir=">"
        ><span class="sr-only">next</span></button>
      </div><!-- &__arrows -->
    </div><!-- &__footer -->
  </div><!-- container -->
</div><!-- hgm-card-carousel -->
/* No context defined. */

Customizations

The Card Carousel component uses data attributes to customize behavior.

Data Attributes (component-level)

  • data-carousel-autoplay - set the carousel to autoplay (interval is specified in milliseconds)
  • data-carousel-hoverpause - allow the carousel to pause on hover; works best when autoplay is enabled
  • data-carousel-animation-duration - duration of the animation in milliseconds
  • data-carousel-animation-timing - Easing function for the animation (linear, ease, ease-in, ease-out, ease-in-out)
  • data-carousel-per-view - Number of visible slides per view; default 3 slides
  • data-carousel-gap - Size of the space between slides; default 20 pixels
  • data-text-color - Set value to color name or hexadecimal value to change the color of the header text
  • data-link-color - Set value to color name or hexadecimal value to change the color of the header link
  • data-bg-color - Set value to color name or hexadecimal value to change the background color of the header