Skip to main content

Carousel

Description

<jp-carousel> is a component with the functionality of creating an interactive image carousel.


Attributes

NameRequiredTypeDescription
imagesArray<{src: string, alt?: string}>stores an image collection
imagesPerSlidenumbernumber of images shown on a slide
enablePaginationbooleandetermines if pagination is enabled
sliderBarbooleandetermines visability of a slider bar
autoSlidebooleandetermines if automatic slide is enabled
intervalnumbertime interval between slides in miliseconds


Slots

This component does not have any slots.



Methods

This component does not have any methods.



Events

This component does not have any events.



Demo

Live Editor
// import '../static/c/carousel.wc.js';

<jp-carousel images='[{"src": "https://picsum.photos/1920/1080"}, {"src": "https://picsum.photos/1280/720"}, {"src": "https://picsum.photos//600"}]'></jp-carousel>
Result
Loading...