Jump to content

Create second image on hover over Blog thumbnail

Recommended Posts

  • Replies 2
  • Views 407
  • Created
  • Last Reply

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

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.