Jump to content

Create second image on hover over Blog thumbnail

Recommended Posts

Add to Blog Page Header

<style>
  .blog-basic-grid>article .image-wrapper:hover img {
    visibility: hidden;
}
  .blog-basic-grid>article:nth-child(1) .image-wrapper:hover {
    background-image: url(https://cdn.pixabay.com/photo/2021/02/03/14/52/woman-5978200__340.jpg);
    background-size: cover;
    background-repeat: no-repeat;
}
  .blog-basic-grid>article:nth-child(2) .image-wrapper:hover {
    background-image: url(https://cdn.pixabay.com/photo/2021/02/07/19/57/gazelle-5992510__340.jpg);
    background-size: cover;
    background-repeat: no-repeat;
}
</style>

Repeat for other blog items

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • 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.