-
AuthorPosts
-
March 25, 2015 at 8:46 pm #418142
Hi there,
I’m looking for a way to achieve something that looks like this on my enfold galleries (both masonry and the regular gallery):
In the example, the gallery image shows first then when the mouse hovers, it goes to a solid colour with a text overlay,I’ve been able to get to this point using CSS:
The problem with mine is that the solid colour shows FIRST then the image shows when you hover. I want to reverse this. Also I’ve no idea how to get the text to show on the solid colour. I also want to ensure that I can align the text as in the example, i.e left aligned, bold and regular fonts etc.This is the CSS I’ve used to do the above. If someone could please show me what’s wrong? Thank you :)
.av-masonry-entry:before {
content: attr(title);
background: #f0211a;
position: absolute;
width: 97%;
height: 96.2%;
z-index: 1000;
text-align: center;
line-height: 180px;
opacity: 10;
font-weight: bold;
font-size: 24px;
}
.av-masonry-entry:hover:before {
opacity: 0.0;
}.av-fixed-size .av-masonry-entry .av-inner-masonry-content, .av-caption-on-hover .av-masonry-item-with-image.av-masonry-entry .av-inner-masonry-content {
position: absolute; bottom: 40%; text-align: center;
}.main_color .container .av-inner-masonry-content {
background-color: rgba(0, 0, 0, 0.0);
}.main_color .av-inner-masonry-content {
background-color: rgba(0, 0, 0, 0.0);
}.main_color .container .av-masonry-entry .avia-arrow {
background-color: rgba(0, 0, 0, 0.0);
}.main_color .avia-arrow {
background-color: rgba(0, 0, 0, 0.0);
}.av-masonry-entry .av-masonry-entry-title {
color: #fff; font-size: ;
}March 27, 2015 at 5:18 pm #419433Hi Sarah!
Remove your CSS and try this out.
.main_color .container .av-inner-masonry-content { height: 100%; padding-top: 20%; width: 100%; background: rgba(255, 0, 0, 0.4); } figcaption { opacity: 0; } a.portfolio:hover figcaption { opacity: 1; }
Best regards,
ElliottMay 14, 2015 at 7:46 pm #444554Hey Elliott,
I’ve tried this several times and can’t seem to get it to work on my page properly, as in the example above :( What I’m aiming for is to start with an image, and on mouse hover the image changes to a solid colour (not at all see through – like the green in the example above) with a text overlay.
What the above code achieves is showing the red on hover, only over the title and caption. In actual fact I don’t want a title and caption, I want that text to come over the image (not under it as the title and caption does now) with the solid colour background.
Here’s an example of what the above code produces:
This is the page I’m using the gallery on – http://www.openroadtravelperu.com/home/home-demo/
Any help would be so very gratefully appreciated !
Thank you :)
- This reply was modified 9 years, 7 months ago by saremcdee.
May 15, 2015 at 8:12 pm #445141Hi!
I’m not seeing it on my end. Go ahead and add it back in so we can check to see what’s going on.
Regards,
Elliott -
AuthorPosts
- You must be logged in to reply to this topic.