shadow
A Carousel is an element that displays multiple items, such as images or news updates, in a rotating fashion.
Use wje-carousel to improve readability, scannability, and contextual understanding of content.
Do not replace structured interactive data with media-only presentation when precision is needed.
Provide alt text, maintain readable contrast, and include text equivalents for icon-only controls.
- Compress media and use lazy loading in larger collections.
- Keep information priority consistent across cards/lists.
- Avoid duplicating the same meaning in icon and text without added value.
| Description | Active slide attribute. |
| Attribute | active-slide |
| Type | number|number |
| Default | - |
No events available for this component.
| Description | Sync activeSlide to the slide whose center is closest to the container center. |
| Signature | () => void |
| Description | Sets up the IntersectionObserver for the Carousel. |
| Signature | () => void |
| Description | Goes to the slide. |
| Signature | (index: any, behavior: any, next: any) => void |
| Description | Clones the first and last items. |
| Signature | () => void |
| Description | Goes to the next slide. |
| Signature | () => void |
| Description | Goes to the next slide. |
| Signature | () => void |
| Description | Goes to the next slide. |
| Signature | () => void |
| Description | Goes to the next slide. |
| Signature | () => Element |
| Description | Goes to the next slide. |
| Signature | () => Element |
| Description | Goes to the next slide. |
| Signature | () => Element |
| Description | Goes to the next slide. |
| Signature | () => Element |
| Description | Goes to the next slide. |
| Signature | () => void |
| Description | Goes to the previous slide. |
| Signature | () => void |
| Description | Goes to the slide. |
| Signature | () => Array |
| Description | Goes to the slide. |
| Signature | () => Array |
| Description | Maps logical index -> visual index (accounts for leading clone when loop=true). |
| Signature | (index: any) => void |
| Description | Maps visual index -> logical index (handles clones at 0 and last when loop=true). |
| Signature | (vIndex: any) => void |
| Description | Goes to the slide. |
| Signature | () => boolean |
| Description | Goes to the slide. |
| Signature | () => boolean |
No CSS shadow parts available for this component.
| Name | Description |
|---|
default | Default slot for the main component content. |