Skip to content

Commit

Permalink
Add note to carousel crossfade docs about bg color (#35587)
Browse files Browse the repository at this point in the history
Fixes #35181

Co-authored-by: Mark Otto <[email protected]>
Co-authored-by: Gaël Poupard <[email protected]>
  • Loading branch information
3 people authored Dec 23, 2021
1 parent f171d3e commit deb8e3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"Contentful",
"Cpath",
"Crossfade",
"crossfading",
"cssgrid",
"Csvg",
"Datalists",
Expand Down
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 want 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 deb8e3f

Please sign in to comment.