{% extends "pxy_dashboard/partials/base.html" %}/ {% load static %} {% block title %}Carousel{% endblock title %} {% block extra_css %} {% endblock extra_css %} {% block pagetitle %} {% include "pxy_dashboard/partials/page-title.html" with pagetitle="Base UI" title="Carousel" %} {% endblock pagetitle %} {% block content %}
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.
Adding in the previous and next controls:
You can also add the indicators to the carousel, alongside the controls, too.
Add captions to your slides easily with the .carousel-caption
element within any .carousel-item
.
Add .carousel-fade
to your carousel to animate slides with a
fade transition instead of a slide.
Add data-bs-interval=""
to a .carousel-item
to
change the amount of time to delay between automatically cycling to the next item.
Add .carousel-dark
to the .carousel
for darker
controls, indicators, and captions. Controls are inverted compared to their default white fill with
the filter
CSS property. Captions and controls have additional Sass variables that
customize the color
and background-color
.