0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-28 10:24:19 +01:00

Add note to carousel crossfade docs about bg color (#35587)

This commit is contained in:
XhmikosR 2021-12-23 14:38:43 +02:00
parent a3d14bb7b7
commit bee3847e6d

View File

@ -154,7 +154,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-ride="carousel">