Multi item carousel
Angular 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 Bootstrap 5, Angular and Material Design. 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
class to the wrapper element.
Lightbox integration
Set lightbox
input to enable lightbox.
To ensure the proper performance of the page, it is recommended to include thumbnails of
images in the src
key. Then in the
img
key add the path to the image with higher resolution. If the
img
key is omitted, the lightbox will display the same image as in
the reduced size.
Active items
Set a items
input to change the number of active images.
Breakpoint
To change breakpoint on small devices easily set
breakpoint
value (default value is 992).
Autoplay
Set a interval
input to enable autoplay.
Multi item carousel - API
Installation
To install and configure the plugin follow our Plugins Installation Guide. Please remember to update all the plugin names and import paths. You can find all the necessary information in the Import section.
Import
Inputs
Name | Type | Default | Description |
---|---|---|---|
slides
|
Array<MdbMultiItemCarouselSlide> | [] |
Defines slides to load |
items
|
number | 3 |
Defines number of visible items. |
vertical
|
boolean | false |
Changes orientation to vertical. |
lightbox
|
boolean | false |
Enables the lightbox option. |
breakpoint
|
number | 992 |
Defines window breakpoint in px to show only one item. |
interval
|
number | 0 |
Defines autoplay interval. When set to 0 autoplay is disabled. |
Outputs
Name | Type | Description |
---|---|---|
slide
|
EventEmitter<void> | Emitted when a multiCarousel has been slided. |
slided
|
EventEmitter<void> | Emitted after an image slide. |
Methods
Name | Description | Example |
---|---|---|
slideLeft |
Manually slides left the carousel | carousel.slideLeft() |
slideRight |
Manually slides right the carousel | carousel.slideRight() |