Hello there,
.av-masonry-entry:before {
content: attr(title);
background: #8C62A4;
position: absolute;
width: 100%;
height: 100%;
z-index: 1000;
text-align: center;
line-height: 180px;
opacity: 0;
font-weight: bold;
font-size: 24px;
}
.av-masonry-entry:hover:before {
opacity: 0.75;
}
.av-masonry-entry:before{
transition: all linear 0.2s;
}
i managed to make the overly effect i want, but as you can see below
the overly effect covers whole the portfolio item.
I want overly only for the image not the excerpt.
The reason to do so, is that i want for the excerpt to have a clickable iframe (with social media buttons), and in that case, any click links to the items page.
Than you instead,
Hey georgesociel!
Sorry I can’t find the thread you got the CSS from, could you provide us with a link to the site in question so that we can take a closer look please?
Best regards,
Rikard
Hi!
Please use the code as following
.av-masonry-image-container:before {
content: attr(title);
background: #8C62A4;
position: absolute;
width: 100%;
height: 100%;
z-index: 1000;
text-align: center;
line-height: 180px;
opacity: 0;
font-weight: bold;
font-size: 24px;
left: 0;
transition: all linear 0.2s;
}
.av-masonry-image-container:hover:before {
opacity: 0.75;
}
Cheers!
Yigit
that is great.
Consider thread closed!
Excellent support Yigit.
Regards,