Jump to content

Adding Overlay to Blog Images in 7.1

Recommended Posts

  • Replies 4
  • Views 1.2k
  • Created
  • Last Reply
17 hours ago, Olivia95 said:

Yes recent post.

Yes to image overlay + white title appear. 

 

Thank you!

 

Add to Home > Design > Custom CSS

/* show title on hover */
.blog-basic-grid--text {
    opacity: 0;
    transition: opacity 0.25s ease-out;
}
.blog-item:hover .blog-basic-grid--text {
    opacity: 1;
}
/* show overlay on hover */
.blog-item .image-wrapper:after {
    position: absolute;
    content: "";
    background: rgba(0,0,0,0.75);
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.25s ease-out;
}
.blog-item:hover .image-wrapper:after {
    opacity: 1;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.