mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
Add note to carousel crossfade docs about bg color (#35587)
Fixes #35181 Co-authored-by: Mark Otto <markdotto@gmail.com> Co-authored-by: Gaël Poupard <ffoodd@users.noreply.github.com>
This commit is contained in:
parent
f171d3e9f7
commit
deb8e3febd
2 changed files with 2 additions and 1 deletions
|
@ -24,6 +24,7 @@
|
|||
"Contentful",
|
||||
"Cpath",
|
||||
"Crossfade",
|
||||
"crossfading",
|
||||
"cssgrid",
|
||||
"Csvg",
|
||||
"Datalists",
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue