Skip to content

Commit

Permalink
Add note to carousel crossfade docs about bg color
Browse files Browse the repository at this point in the history
Fixes #35181
  • Loading branch information
mdo committed Oct 13, 2021
1 parent b991a6b commit d1b6ab2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/content/docs/5.1/components/carousel.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Add captions to your slides easily with the `.carousel-caption` element within a

### Crossfade

Add `.carousel-fade` to your carousel to animate slides with a fade transition instead of a slide.
Add `.carousel-fade` to your carousel to animate slides with a fade transition instead of a slide. Depending on your carousel content (e.g., text only slides), you may way to add `.bg-body` or some custom CSS to the `.carousel-item`s for proper crossfading.

{{< example >}}
<div id="carouselExampleFade" class="carousel slide carousel-fade" data-bs-ride="carousel">
Expand Down

0 comments on commit d1b6ab2

Please sign in to comment.