Topic: Lightbox gallery background
Is it possible to modify the background of the lightbox gallery so that it is an alternative to solid black? I'd like to change the opacity if possible so that a little of the underlying page can be seen.
Marcin Luczak
staff answered 5 months ago
Hi Calder,
There is no method for changing default background color and opacity for Lightbox Gallery but you can achieve it by changing background-color style of .pswp__bg class, which is responsible for the background color. Please see the CSS tab from my snippet:
https://mdbootstrap.com/snippets/jquery/marcin-luczak/2695049
Regards, Marcin
Answered
- User: Pro
- Premium support: Yes
- Technology: jQuery
- MDB Version: 4.19.1
- Device: MacBook Air
- Browser: Google Chrome Version 86.0.4240.
- OS: OSX 10.14.6 Mojave
- Provided sample code: No
- Provided link: No