You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: site/content/docs/5.2/components/carousel.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -208,10 +208,10 @@ Add `data-bs-interval=""` to a `.carousel-item` to change the amount of time to
208
208
209
209
### Disable touch swiping
210
210
211
-
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 and has `data-bs-interval="false"`so it doesn't autoplay.
211
+
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.
@@ -314,7 +314,7 @@ const carousel = new bootstrap.Carousel('#myCarousel')
314
314
{{< bs-table >}}
315
315
| Name | Type | Default | Description |
316
316
| --- | --- | --- | --- |
317
-
|`interval`| number |`5000`| The amount of time to delay between automatically cycling an item. If `false`, carousel will not automatically cycle. |
317
+
|`interval`| number |`5000`| The amount of time to delay between automatically cycling an item. |
318
318
|`keyboard`| boolean |`true`| Whether the carousel should react to keyboard events. |
319
319
|`pause`| string, boolean |`"hover"`| If set to `"hover"`, pauses the cycling of the carousel on `mouseenter` and resumes the cycling of the carousel on `mouseleave`. If set to `false`, hovering over the carousel won't pause it. On touch-enabled devices, when set to `"hover"`, cycling will pause on `touchend` (once the user finished interacting with the carousel) for two intervals, before automatically resuming. This is in addition to the mouse behavior. |
320
320
|`ride`| string, boolean |`false`| If set to `true`, autoplays the carousel after the user manually cycles the first item. If set to `"carousel"`, autoplays the carousel on load. |
0 commit comments