# CarouselEnds

> Represents the carousel behaviors at the first and last slides.

[API reference](/docs/api/index.md) › [Bootstrap 6](/docs/extensions/bootstrap6/reference/index.md) › [enum](/docs/extensions/bootstrap6/reference/enum/index.md) › CarouselEnds

| enum | `yii2\extensions\bootstrap6\enum\CarouselEnds` |
| --- | --- |
| Backed by | `string` |
| Source | [`src/enum/CarouselEnds.php`](https://github.com/yii2-extensions/bootstrap6/blob/main/src/enum/CarouselEnds.php#L10) |

Represents the carousel behaviors at the first and last slides.

## Cases

| Case | Value | Description |
| --- | --- | --- |
| <span id="case-LOOP"></span>`LOOP` | `'loop'` | Repeats the slides when the carousel reaches either end. |
| <span id="case-STOP"></span>`STOP` | `'stop'` | Stops the carousel at the first and last slides. |
| <span id="case-WRAP"></span>`WRAP` | `'wrap'` | Wraps to the opposite end when the carousel reaches either end. |