Web Implementation Guidelines Group Component Builder Information (v3+)

Component: Carousel 1.2

This builder will allow you to generate a custom version of the Carousel component.

The component will show up in between the pink lines below. The pink lines will not show up in production -- they are only used to allow you to view margins and paddings. In the case of specialized components (things that are meant to be invisible or have a fixed location), the component may not display in this area.

Template -- enter raw HTML here

Attributes, Classes, and CSS Variables

(attribute)
Alternative control layouts.
(attribute)
Color theme used
(attribute)
If the carousel should autoplay on load.
(attribute)
Make the component expand to full width even inside a container
(attribute)
Move the text content to be over the image on wider viewports
(text attribute)
Time in seconds for each slide, defaults to 10.
(text attribute)
Set the actively shown slide.
(text attribute)
Accessible name for the whole carousel. Defaults to "Highlighted Content".
(text attribute)
CSS height for the carousel images. Defaults to 500px.
Custom CSS Variables and Styles (advanced use only)
Font for the carousel text content [default: var(--il-font-sans)]
Carousel image height [default: 500px]
Background behind text content below the carousel [default: #fff]
Height of the controls area [default: 80px]
Height of the controls area [default: 46px]
Background of the controls area [default: var(--il-storm-95)]
Width of the progress bar [default: 300px]
Width of the progress bar [default: 160px]
Height of the progress bar [default: 10px]
Spacing between slide number tabs [default: 10px]
Spacing between slide number tabs [default: 2px]
Spacing above slide number tabs [default: 10px]
Play button height [default: 40px]
Play button font [default: 400 2.125rem/0.5 var(--il-font-sans)]
Slide number tab height [default: 32px]
Slide number tab width [default: 32px]
Slide number tab font [default: 700 1.188rem/1.5 var(--il-font-sans)]
Control buttons border width [default: 2px]
Control buttons border width [default: 5px]
Height of the previous/next buttons [default: 160px]
Width of the previous/next buttons [default: 46px]
Border width of the previous/next buttons [default: 2px]
Line height of the previous/next buttons [default: 1]
Font size of the previous/next buttons [default: 1rem]
Font for the slide headings [default: 700 2rem/1.3 var(--il-font-sans)]
Font for the slide paragraphs [default: 500 1.125rem/1.5 var(--il-font-sans)]
Color for the slide content [default: #000]
Color for the slide content when overlay is used [default: #fff]
Max width for the slide content area [default: 500px]
Extra padding to add to the top of the content area to allow for controls [default: 1.125rem]
Extra padding to add to the top of the content area to allow for controls when in compact mode [default: 1rem]
Padding for the slide content area when overlay is used [default: 1.5rem]
Left position for the slide content area when overlay is used [default: 8vw]
Font for the slide headings when overlay is used [default: 700 2.25rem/1 var(--il-font-sans)]
Background for the slide overlay [default: radial-gradient(rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.35))]
Shadow color for the slide headings when overlay is used [default: rgba(0, 0, 0, 1)]
Font for the slide paragraphs when overlay is used [default: 500 1.25rem/1.5 var(--il-font-sans)]

HTML listed here

This parent has a style of that is not figured into the source HTML. You can change this by opening the Custom CSS Variables and Styles and editing the parent style.

Details

Changing slides with images and text.

Full Version: 1.2.1

Type: web component

Date Created: 10/3/2025

Version notes:

Github repository: https://github.com/web-illinois/ilw-carousel/

Javascript file: https://cdn.toolkit.illinois.edu/ilw-carousel/1.2.1/ilw-carousel.js

CSS file: https://cdn.toolkit.illinois.edu/ilw-carousel/1.2.1/ilw-carousel.css

JSON information: ilw-carousel.1.2.json

Web Implementation Guidelines Group Component Builder Information (v3+)

Note: this page is not using the toolkit because it is meant to test individual components in isolation.