@extends('layouts.master') @section('title') @lang('translation.Carousel') @endsection @section('content') @component('common-components.breadcrumb') @slot('pagetitle') UI Elements @endslot @slot('title') Carousel @endslot @endcomponent

Slides only

Here’s a carousel with slides only. Note the presence of the .d-block and .img-fluid on carousel images to prevent browser default image alignment.

With controls

Adding in the previous and next controls:

With indicators

You can also add the indicators to the carousel, alongside the controls, too.

With captions

Add captions to your slides easily with the .carousel-caption element within any .carousel-item.

Crossfade

Add .carousel-fade to your carousel to animate slides with a fade transition instead of a slide.

Individual .carousel-item interval

Add data-bs-interval="" to a .carousel-item to change the amount of time to delay between automatically cycling to the next item.

Dark variant

Add .carousel-dark to the .carousel for darker controls, indicators, and captions. Controls have been inverted from their default white fill with the filter CSS property. Captions and controls have additional Sass variables that customize the color and background-color.

@endsection