-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opacity of overlay doesn't change after re-invoke. #121
Comments
How is that an issue? It's a setting. If you want to change it on On Tue, Oct 11, 2011 at 9:40 AM, legaev-stas
Jack Moore |
This is not a proble to change it by CSS. |
You can easily change it via CSS. $('#cboxOverlay').css('opacity', 1); In addition, $.colorbox({..settings..}) doesn't do anything because // change the default setting: // update it on an element: On Tue, Oct 11, 2011 at 11:05 AM, legaev-stas
Jack Moore |
I'm sorry. Coming back and reading this again and it makes better sense to me (I think). You still can't change settings on the fly by calling colorbox a new settings object, but my guess is that you weren't actually doing this:
But probably something like this:
And the opacity wouldn't have changed, like you pointed out. Fixed now, and sorry about the misunderstanding. |
If colorbox is opened and user try to open new one with new "opacity" for overlay, it won't change.
Example:
jQuery.colorbox({opacity:0.3})
jQuery.colorbox({opacity:0.8})
console.log(jQuery('#cboxOverlay').css('opacity')) // 0.3
Thanks.
The text was updated successfully, but these errors were encountered: