From c949e389501f5be223e5487fd560502cad595b79 Mon Sep 17 00:00:00 2001 From: Louis-Maxime Piton Date: Wed, 31 Aug 2022 15:58:49 +0200 Subject: [PATCH] fix(docs): reorder Carousel doc parts (#1491) --- site/content/docs/5.2/components/carousel.md | 56 ++++++++++---------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/site/content/docs/5.2/components/carousel.md b/site/content/docs/5.2/components/carousel.md index a7029c687a..750b62fa87 100644 --- a/site/content/docs/5.2/components/carousel.md +++ b/site/content/docs/5.2/components/carousel.md @@ -183,34 +183,6 @@ Add captions to your slides easily with the `.carousel-caption` element within a {{< /example >}} -### Disable touch swiping - -Carousels support swiping left/right on touchscreen devices to move between slides. This can be disabled using the `data-bs-touch` attribute. The example below also does not include the `data-bs-ride` attribute so it doesn't autoplay. - -{{< example >}} - -{{< /example >}} - ### Crossfade 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. @@ -274,6 +246,34 @@ Add `data-bs-interval=""` to a `.carousel-item` to change the amount of time to {{< /example >}} +### Disable touch swiping + +Carousels support swiping left/right on touchscreen devices to move between slides. This can be disabled using the `data-bs-touch` attribute. The example below also does not include the `data-bs-ride` attribute so it doesn't autoplay. + +{{< example >}} + +{{< /example >}} + ### Prevent cycling