Search
Other Modals questions
Forum

How to set transparency on background screen during popup?

Geoff's Avatar Geoff
Hi, this seems like a basic question, but I can't see how to set the background transparency of the screen behind the modal when active. I'd like it more transparent. I've looked in the plugin settings.

14.0.13PRO

Thanks,
Geoff
Peter van Westen's Avatar Peter van Westen ADMIN
You can control this via CSS styling. For instance:
[data-modals-element=modal] [data-modals-element=overlay] {
    --color: 255, 0, 0;
    --opacity: 0.5;
}
See: docs4.regularlabs.com/modals/the-basics/styling#custom-styling
Please post a rating at the Joomla! Extensions Directory
Geoff's Avatar Geoff
OK thanks. Perhaps a global color & opacity % setting in the plugin would be a nice feature?

thanks,
Geoff
Peter van Westen's Avatar Peter van Westen ADMIN
Styling is kept in CSS as much as possible. So no plans to add that as an option.
Please post a rating at the Joomla! Extensions Directory
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription