Skip to content

Commit

Permalink
Remove data-ride from example carousel
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhlauke committed Dec 28, 2020
1 parent ba6182a commit b26fbdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/content/docs/4.5/components/carousel.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,10 @@ Add `data-interval=""` to a `.carousel-item` to change the amount of time to del

### Suppressing touch swiping

By default, carousels support swiping left/right on touchscreen devices to move between slides. This can be explicitly suppressed using the `data-touch` attribute.
By default, carousels support swiping left/right on touchscreen devices to move between slides. This can be explicitly suppressed using the `data-touch` attribute. The example below also does not include the `data-ride="carousel"` attribute, meaning that it won't autoplay.

{{< example >}}
<div id="carouselExampleControlsNoTouching" class="carousel slide" data-ride="carousel" data-touch="false">
<div id="carouselExampleControlsNoTouching" class="carousel slide" data-touch="false">
<div class="carousel-inner">
<div class="carousel-item active">
{{< placeholder width="800" height="400" class="bd-placeholder-img-lg d-block w-100" color="#555" background="#777" text="First slide" >}}
Expand Down

0 comments on commit b26fbdf

Please sign in to comment.