Skip to main content

Image Gallery

Description

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


Attributes

NameRequiredTypeDescription
imagesArray<{src: string, alt?: string}>stores an image collection
enablePaginationbooleandetermines if pagination is enabled
sliderBarbooleandetermines visability of a slider bar
autoSlidebooleandetermines if automatic slide is enabled
intervalnumbertime interval between slides in miliseconds
columnCountnumberdetermines the number of columns for screens wider than 1024px
columnCountTablenumberdetermines the number of columns for screenswith a width between 600px and 1024px
columnCountMobilenumberdetermines the number of columns for screens with a width less then 600px
gapXnumberdetermines space between columns in px
gapYnumberdetermines space between rows in px


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/image-gallery.wc.js';

<jp-image-gallery images='[{"src": "https://picsum.photos//700"}, {"src": "https://picsum.photos/1280/720"}, {"src": "https://picsum.photos/1920/1080"}, {"src": "https://picsum.photos//800"}, {"src": "https://picsum.photos/900/900"}, {"src": "https://picsum.photos/854/480"}, {"src": "https://picsum.photos/2560/1440"}, {"src": "https://picsum.photos/1000/1000"}, {"src": "https://picsum.photos/800/600"}, {"src": "https://picsum.photos/700/900"}, {"src": "https://picsum.photos/700/700"}, {"src": "https://picsum.photos/1200/1200"}] '>
</jp-image-gallery>
Result
Loading...