demo video:https://cln.sh/nsJGlxmFgT0vdFpzXWZX
import { previewImageInFullscreen } from 'fullscreen-img'
document.body.addEventListener('click', (evt) => {
if (evt.target.nodeName === 'IMG') {
previewImageInFullscreen(target)
}
}, true)
document.body.addEventListener('click', (evt) => {
if (evt.target.nodeName === 'IMG') {
previewImageInFullscreen(target, {
maskBackgroundColor: '#fff'
})
}
}, true)