Options
How to use options
Chocolat(document.querySelectorAll('.chocolat-image'), {
// options here
})Chocolat(document.querySelectorAll('.chocolat-image'), {
container: document.querySelector('#my-container'),
loop: true,
imageSize: 'cover',
// ...
})Options list
container
imageSize
Image sizeslinkImages
className
loop
closeOnBackgroundClick
firstImageIndex
lastImageIndex
setTitle
description
pagination
imageSourceAttribute
fullScreen
allowZoom
afterInitialize
afterMarkup
afterImageLoad
afterClose
zoomedPaddingX
zoomedPaddingY
Last updated