Add the Carousel element and choose its settings
Drag in the Carousel element. In the Navigator it holds a viewport with a container of slides, a previous arrow, a next arrow and a pagination area with one dot. Elementor copies that dot once per position when the page loads, so you style one dot and every dot follows.
The settings this site uses are Slides per view 2, Loop on, arrows on, dots for pagination, the slide transition and autoplay off. Two in view matters: with four slides and three in view, Loop did nothing here, and Next simply greyed out at the last position. At two in view it wraps from the fourth slide back to the first.
This is a simplified copy of what Elementor printed on the Elementor 4 element gallery page, with my class names added:
elementor-output.htmlHTML <div class="e-carousel" role="region" aria-roledescription="carousel" aria-label="Carousel"> <div class="e-carousel__viewport"> <div class="e-carousel__container"> <div class="e-carousel__slide carousel-slide carousel-slide--violet" role="group" aria-roledescription="slide" aria-label="1 of 4"> <span>01</span> <h3>Aurora light</h3> </div> <div class="e-carousel__slide carousel-slide carousel-slide--pink" role="group" aria-roledescription="slide" aria-label="2 of 4"> <span>02</span> <h3>Frosted glass</h3> </div> <div class="e-carousel__slide carousel-slide carousel-slide--green" role="group" aria-roledescription="slide" aria-label="3 of 4"> <span>03</span> <h3>Spinning edges</h3> </div> <div class="e-carousel__slide carousel-slide carousel-slide--amber" role="group" aria-roledescription="slide" aria-label="4 of 4"> <span>04</span> <h3>Self-colouring badges</h3> </div> </div> </div> <button class="e-carousel__arrow e-carousel__arrow--prev carousel-arrow" type="button" aria-label="Previous slide"> <svg viewBox="0 0 24 24" width="14" height="14" aria-hidden="true"><path d="M15 5l-7 7 7 7" fill="none" stroke="currentColor" stroke-width="2.5"/></svg> </button> <button class="e-carousel__arrow e-carousel__arrow--next carousel-arrow" type="button" aria-label="Next slide"> <svg viewBox="0 0 24 24" width="14" height="14" aria-hidden="true"><path d="M9 5l7 7-7 7" fill="none" stroke="currentColor" stroke-width="2.5"/></svg> </button> <div class="e-carousel__pagination carousel-dots" aria-label="Slides"> <button class="e-carousel__dot carousel-dot" type="button" aria-label="Go to slide 1" aria-current="true"></button> <button class="e-carousel__dot carousel-dot" type="button" aria-label="Go to slide 2"></button> <button class="e-carousel__dot carousel-dot" type="button" aria-label="Go to slide 3"></button> <button class="e-carousel__dot carousel-dot" type="button" aria-label="Go to slide 4"></button> </div> </div>Before any styling: Elementor's default layout, with the arrows over the slides and a black active dot. Swipe or scroll the slides here; the arrows and dots need Elementor's script. Kara Pernice of Nielsen Norman Group sums up why carousels exist at all:
Carousels allow multiple pieces of content to occupy a single, coveted space.
Kara Pernice, Nielsen Norman Group, "Designing Effective Carousels" The space here is one 480px panel in the element gallery, and four techniques share it. That is also the catch: anything on slide three is hidden until someone moves to it, so a carousel suits a set of equal, browsable items better than one message every visitor must see.
Give the slides a class
Select each slide and add the class
carousel-slide, plus one colour class such ascarousel-slide--violet. The number and title inside are a Paragraph and a Heading element.Every selector in this guide starts with
.elementorand names the element, for example.elementor button.carousel-dot. Elementor's own carousel rules look like.elementor .e-carousel-dot-base.e--selected, and one more element in your selector is what lets yours win without!important. Paste the CSS into a Custom Code snippet: the attribute selectors in steps 3 and 4 cannot be built in the class panel.carousel.cssCSS .elementor .carousel-slide { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-height: 180px; padding: 20px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 16px; color: #F6F6FC; text-align: left; } .elementor .carousel-slide span { font: 12px/1 ui-monospace, monospace; color: #BBBBD1; } .elementor .carousel-slide h3 { margin: 0; font-size: 22px; line-height: 1.2; } .elementor .carousel-slide--violet { background-image: linear-gradient(135deg, rgba(116, 83, 254, 0.55), rgba(63, 75, 218, 0.25)); } .elementor .carousel-slide--pink { background-image: linear-gradient(135deg, rgba(249, 60, 187, 0.45), rgba(116, 83, 254, 0.2)); } .elementor .carousel-slide--green { background-image: linear-gradient(135deg, rgba(79, 250, 181, 0.35), rgba(63, 75, 218, 0.3)); } .elementor .carousel-slide--amber { background-image: linear-gradient(135deg, rgba(255, 197, 77, 0.4), rgba(249, 60, 187, 0.25)); }After step 2: the slides are cards, but the arrows still cover the titles. Move the carousel arrows into a control bar
Give both arrows the class
carousel-arrow. The Carousel element is a CSS grid: the slides fill row 1 and the dots fill row 2, and Elementor places both arrows in row 1, on top of the first and last slide.grid-area: 2 / 1moves them into the dots' row, and Elementor's owne-carousel__arrow--nextclass lets the next arrow sit at the far end.When Loop is off, Elementor marks the spent arrow with
aria-disabled="true", so the last rule dims it.
Elementor puts the arrows in the slides' grid row; one grid-area moves them under. carousel.cssCSS .elementor button.carousel-arrow { grid-area: 2 / 1; align-self: center; justify-self: start; position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; margin: 14px 0 0; padding: 0; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: #F6F6FC; cursor: pointer; } .elementor button.carousel-arrow.e-carousel__arrow--next { justify-self: end; } .elementor button.carousel-arrow:hover { background: rgba(255, 255, 255, 0.14); } .elementor button.carousel-arrow[aria-disabled="true"] { opacity: 0.35; cursor: default; }After step 3: both arrows sit in a bar under the slides, clear of the titles. Make the dots readable and easy to tap
Give the pagination area the class
carousel-dotsand the dot the classcarousel-dot. Elementor's default makes the active dot black, which disappears on a dark background.Each dot is 8px to look at, with 8px of padding round it and
background-clip: content-box, so the button you can tap is 24px square. That is the minimum target size in WCAG 2.2. Elementor setsaria-current="true"on the dot for the current position, which is what the wider white pill follows.carousel.cssCSS .elementor div.carousel-dots { display: flex; justify-content: center; align-items: center; gap: 2px; margin: 14px 0 0; padding: 8px 0; } .elementor button.carousel-dot { box-sizing: content-box; width: 8px; height: 8px; min-width: 0; min-height: 0; padding: 8px; border: 0; border-radius: 999px; background-color: rgba(255, 255, 255, 0.45); background-clip: content-box; cursor: pointer; transition: width 0.25s ease, background-color 0.25s ease; } .elementor button.carousel-dot:hover { background-color: rgba(255, 255, 255, 0.7); } .elementor button.carousel-dot[aria-current="true"] { width: 22px; background-color: #F6F6FC; }After step 4: the active dot is a white pill, and every dot has a 24px target. Add focus rings, calm the motion and decide on autoplay
A visible focus ring shows keyboard users which control they are on, and the reduced-motion rule stops the dot from animating for people who ask for less motion.
This site leaves Autoplay off. If you switch it on, also switch on Show autoplay button, which is off by default, so visitors get a pause control. The same honesty about motion runs through the spinning gradient border guide.
carousel.cssCSS .elementor button.carousel-arrow:focus-visible, .elementor button.carousel-dot:focus-visible { outline: 2px solid #35D0FF; outline-offset: 2px; } @media (prefers-reduced-motion: reduce) { .elementor button.carousel-dot { transition: none; } }After step 5: click in the preview and press Tab to move the focus ring across the arrows and dots. The W3C's carousel tutorial is direct about moving content:
Users must be able to pause carousel movement because it can be too fast or distracting, making text hard to read.
W3C Web Accessibility Initiative, Carousels Tutorial That is why the pause button matters more than any styling in this guide. A carousel that only moves when the visitor asks it to, as this one does, never needs one.
What the carousel element does not do here
Loop needs spare slides. With four slides and three in view it did nothing on this site; with two in view it worked.
The arrows and dots depend on Elementor's script. The step previews on this page have no script, so swipe or scroll their slides; the carousel at the top of this guide and the one in the element gallery are the real element.
On this site the carousel's styles are loaded by Elementor Pro, so I list Pro as needed.
I have not tested autoplay at length, because this site leaves it off.
All the CSS for this carousel
Each file below is complete. Copy it, or download it under the name shown.
<div class="e-carousel" role="region" aria-roledescription="carousel" aria-label="Carousel">
<div class="e-carousel__viewport">
<div class="e-carousel__container">
<div class="e-carousel__slide carousel-slide carousel-slide--violet" role="group" aria-roledescription="slide" aria-label="1 of 4">
<span>01</span>
<h3>Aurora light</h3>
</div>
<div class="e-carousel__slide carousel-slide carousel-slide--pink" role="group" aria-roledescription="slide" aria-label="2 of 4">
<span>02</span>
<h3>Frosted glass</h3>
</div>
<div class="e-carousel__slide carousel-slide carousel-slide--green" role="group" aria-roledescription="slide" aria-label="3 of 4">
<span>03</span>
<h3>Spinning edges</h3>
</div>
<div class="e-carousel__slide carousel-slide carousel-slide--amber" role="group" aria-roledescription="slide" aria-label="4 of 4">
<span>04</span>
<h3>Self-colouring badges</h3>
</div>
</div>
</div>
<button class="e-carousel__arrow e-carousel__arrow--prev carousel-arrow" type="button" aria-label="Previous slide">
<svg viewBox="0 0 24 24" width="14" height="14" aria-hidden="true"><path d="M15 5l-7 7 7 7" fill="none" stroke="currentColor" stroke-width="2.5"/></svg>
</button>
<button class="e-carousel__arrow e-carousel__arrow--next carousel-arrow" type="button" aria-label="Next slide">
<svg viewBox="0 0 24 24" width="14" height="14" aria-hidden="true"><path d="M9 5l7 7-7 7" fill="none" stroke="currentColor" stroke-width="2.5"/></svg>
</button>
<div class="e-carousel__pagination carousel-dots" aria-label="Slides">
<button class="e-carousel__dot carousel-dot" type="button" aria-label="Go to slide 1" aria-current="true"></button>
<button class="e-carousel__dot carousel-dot" type="button" aria-label="Go to slide 2"></button>
<button class="e-carousel__dot carousel-dot" type="button" aria-label="Go to slide 3"></button>
<button class="e-carousel__dot carousel-dot" type="button" aria-label="Go to slide 4"></button>
</div>
</div>.elementor .carousel-slide {
display: flex;
flex-direction: column;
justify-content: flex-end;
gap: 4px;
min-height: 180px;
padding: 20px;
border: 1px solid rgba(255, 255, 255, 0.14);
border-radius: 16px;
color: #F6F6FC;
text-align: left;
}
.elementor .carousel-slide span {
font: 12px/1 ui-monospace, monospace;
color: #BBBBD1;
}
.elementor .carousel-slide h3 {
margin: 0;
font-size: 22px;
line-height: 1.2;
}
.elementor .carousel-slide--violet { background-image: linear-gradient(135deg, rgba(116, 83, 254, 0.55), rgba(63, 75, 218, 0.25)); }
.elementor .carousel-slide--pink { background-image: linear-gradient(135deg, rgba(249, 60, 187, 0.45), rgba(116, 83, 254, 0.2)); }
.elementor .carousel-slide--green { background-image: linear-gradient(135deg, rgba(79, 250, 181, 0.35), rgba(63, 75, 218, 0.3)); }
.elementor .carousel-slide--amber { background-image: linear-gradient(135deg, rgba(255, 197, 77, 0.4), rgba(249, 60, 187, 0.25)); }
.elementor button.carousel-arrow {
grid-area: 2 / 1;
align-self: center;
justify-self: start;
position: relative;
z-index: 1;
display: grid;
place-items: center;
width: 40px;
height: 40px;
margin: 14px 0 0;
padding: 0;
border: 1px solid rgba(255, 255, 255, 0.16);
border-radius: 999px;
background: rgba(255, 255, 255, 0.06);
color: #F6F6FC;
cursor: pointer;
}
.elementor button.carousel-arrow.e-carousel__arrow--next {
justify-self: end;
}
.elementor button.carousel-arrow:hover {
background: rgba(255, 255, 255, 0.14);
}
.elementor button.carousel-arrow[aria-disabled="true"] {
opacity: 0.35;
cursor: default;
}
.elementor div.carousel-dots {
display: flex;
justify-content: center;
align-items: center;
gap: 2px;
margin: 14px 0 0;
padding: 8px 0;
}
.elementor button.carousel-dot {
box-sizing: content-box;
width: 8px;
height: 8px;
min-width: 0;
min-height: 0;
padding: 8px;
border: 0;
border-radius: 999px;
background-color: rgba(255, 255, 255, 0.45);
background-clip: content-box;
cursor: pointer;
transition: width 0.25s ease, background-color 0.25s ease;
}
.elementor button.carousel-dot:hover {
background-color: rgba(255, 255, 255, 0.7);
}
.elementor button.carousel-dot[aria-current="true"] {
width: 22px;
background-color: #F6F6FC;
}
.elementor button.carousel-arrow:focus-visible,
.elementor button.carousel-dot:focus-visible {
outline: 2px solid #35D0FF;
outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
.elementor button.carousel-dot {
transition: none;
}
}Elementor 4 carousel questions
Why does Loop not work on my Elementor 4 carousel?
It needs spare slides. On this site four slides with three in view would not loop; with two in view they did.
How do I stop the arrows covering my slides?
Move them into the second grid row with grid-area: 2 / 1, as in step 3, so they sit beside the dots.
Why is the active dot black?
That is Elementor's default. Target button.carousel-dot[aria-current="true"] with a light colour, as in step 4.
How big should carousel dots be?
At least 24px square to tap. Padding with background-clip: content-box keeps the visible dot small and the target large.
Does the Carousel element need Elementor Pro?
On this site its styles are loaded by Elementor Pro, so plan on Pro.
Should a carousel autoplay?
Only with a pause control. Turn on Show autoplay button if you turn on Autoplay.
Can the slides have a glow?
Yes. A soft coloured box-shadow lifts them. Box Shadow Generator, made by Mark McNeece of 365i, builds one you can copy.