eCommerce gallery
Angular Bootstrap 5 eCommerce gallery plugin
Responsive eCommerce gallery built with the Bootstrap 5, Angular and Material Design. Customize with zoom effect, carousels, different positions, and much more.Note: Read the API tab to find all available options and advanced customization
Note: eCommerce gallery plugin requires Multi item carousel. Make sure you have installed the Multi item carousel plugin.
Basic example
A basic example of a gallery with the most common use case with the bootstrap grid and activation on hover.
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.
Activate on mouseenter
Activation on mouseenter can be enabled by adding a
activation
input with mouseenter
value.
Zoom effect
Set zoomEffect
input to enable enlarging the main image on hover.
Carousel example
Thumbnails can also be displayed as a multi carousel.
Vertical carousel
By adding the vertical
class to the gallery and vertical
input to the carousel you can achieve the
following effect:
Different positions
Thumbnails at the top
Easily add a carousel before the main image to view thumbnails above it.
Thumnails on the right
Add the carousel in the second column to display thumbnails on the right.
Different thumbnails number
2 thumbnails
Set [items]="2"
to make two thumbnails visible.
4 thumbnails
Set [items]="4"
to make four thumbnails visible.
Different image sizes
Horizontal carousel
Image sizes are automatically adjusted to the view.
Vertical carousel
In a vertical carousel, it works too.
Equal image sizes
A basic example of a gallery with images of equal sizes where
autoHeight
input is set to true
.
eCommerce gallery - 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
MdbEcommerceGallery
Name | Type | Default | Description |
---|---|---|---|
activation
|
'click' | 'mouseenter' | 'click' |
Defines image toggle mouse event. |
MdbEcommerceGalleryMainImg
Name | Type | Default | Description |
---|---|---|---|
autoHeight
|
boolean | false |
Changes active image styling to auto height. |
zoomEffect
|
boolean | false |
Hovering over the image enlarges it in the given place. |
MdbEcommerceGalleryImage
Name | Type | Default | Description |
---|---|---|---|
img
|
string | '' |
Defines regular image to load as main image. If not set, the value of src attribute is taken. |