Closed raRaRa closed 5 years ago
Just added an onClose
callback to allow you to do this. Example to disable scrolling:
BigPicture({
el: this,
animationStart: function() {
document.documentElement.style.overflowY = 'hidden'
document.body.style.overflowY = 'scroll'
},
onClose: function() {
document.documentElement.style.overflowY = 'auto'
document.body.style.overflowY = 'auto'
}
})
or if you just want to completely remove the scrollbar:
BigPicture({
el: this,
animationStart: function() {
document.documentElement.style.overflow = 'hidden'
},
onClose: function() {
document.documentElement.style.overflow = 'auto'
}
})
Hi,
Is it possible to hide the scrollbars when bigpicture is open?
Thanks.