Multi item carousel
Vue Bootstrap 5 Multi item carousel plugin
An advanced slideshow component for cycling through images with a selectable number of active items.
Responsive Multi item carousel built with the latest Bootstrap 5 and Vue 3. Many practical examples like lightbox integration, Vertical, autoplay, and many more.
Note: Read the API tab to find all available options and advanced customization
Basic example
A basic example of a multi carousel with the most common use case with 3 active items (default version).
Vertical example
To enable vertical mode just add vertical
property to the
component.
Lightbox integration
Wrap carousel by a div.lightbox
element to enable lightbox.
Wrap carousel by a MDBLightbox
element and add
lightbox
property to enable lightbox. Remember to update Lightbox images on Carousel's
updateImages
event.
To ensure the proper performance of the page, it is recommended to
include thumbnails of images in the src attribute. Then in the
fullScreenSrc
attribute add the path to the image with
higher resolution. If the fullScreenSrc
attribute is
omitted, the lightbox will display the same image as in the reduced
size.
Active items
Set a items
property to change the number of active
images.
Breakpoint
To change breakpoint on small devices easily set
breakpoint
property value (default value is 992). Set to
false
to disable responsiveness.
Autoplay
Set an interval
property to enable autoplay.
Multi item carousel - API
Import
Properties
Name | Type | Default | Description |
---|---|---|---|
breakpoint
|
Number / String / Boolean | 992 |
Defines window breakpoint in px to show only one item. Set to
false to disable.
|
images
|
Array | [] |
Defines images array for JavaScript initialization |
interval
|
Number / String / Boolean | false |
Defines autoplay interval. Disabled as a default. |
items
|
Number / String | 3 |
Defines number of visible items. |
lightbox
|
Boolean | false |
Allows using carousel inside MDBLightbox component. |
tag
|
String | 'div' |
Defines element tag for component wrapper. |
vertical
|
Boolean | false |
Sets vertical carousel. |
Methods
Name | Description |
---|---|
next
|
Slides to the next item. |
prev
|
Slides to the previous item. |
Events
Name | Description |
---|---|
slide
|
Emitted when a multiCarousel has been slided. |
slided
|
Emitted after an image slide. |
updateImages
|
Emitted after an image collection is updated. Necessary for Lightbox integration |