-
AuthorPosts
-
October 20, 2018 at 7:47 pm #1024398
I am a adding a “multiply” blend mode to the image caption color overlay and it works great, other than it is applying the blend mode to my white
caption text- making it hard to read. Is there a way to make this blend mode not include this caption text? which i think is inside: av-image-caption-overlay-center
I think since the caption text is nested in .av-image-caption-overlay that it applies the blend to everything. I just need to find a work around.
Here is what i am using to target the overlay on hover:.av-overlay-on-hover .av-image-caption-overlay { mix-blend-mode: multiply;
thanks for an suggestions or workarounds!
October 22, 2018 at 4:41 pm #1024964Hey jomo5280,
Could you please give us a link to your website, we need more context to be able to help you.
Best regards,
VictoriaOctober 22, 2018 at 4:49 pm #1024973I have the effect applied to the top right image – and you can see how the text is effected by this blend mode as well, making it hard to read: av-overlay-on-hover .av-image-caption-overlay
I need it so the white caption text is not effected by the blend mode and stays white – does that make sense?
thanks!- This reply was modified 6 years, 2 months ago by jomo5280.
October 24, 2018 at 3:19 am #1025756Ok, i have resolved this issue as well – had to edit image.php to get the caption out of the parent Div.
//$overlay = "<div class='av-image-caption-overlay'>{$overlay_bg}<div class='av-image-caption-overlay-position'><div class='av-image-caption-overlay-center' {$style}>{$content}</div></div></div>"; $overlay = "<div class='av-image-caption-overlay-center' {$style}>{$content}</div><div class='av-image-caption-overlay'>{$overlay_bg}<div class='av-image-caption-overlay-position'></div></div>";
and add this to custom.css:
.av-overlay-on-hover .av-image-caption-overlay-center{opacity: 0; filter:alpha(opacity=00); } .av-overlay-on-hover .avia-image-container-inner:hover .av-image-caption-overlay-center{opacity: 1; filter:alpha(opacity=100);}
- This reply was modified 6 years, 2 months ago by jomo5280.
October 24, 2018 at 3:11 pm #1025926Hi jomo5280,
Glad you got it working for you and thank you for sharing! :)
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.