Jump to content

[Share] Hover Gallery Image – Show another image

Recommended Posts

You can follow these steps to achieve effect.

If you can't make it work, you can send link to page where you use gallery + code you added, I can check again easier.

#1. First, find Gallery Section ID

In my example, we have

section[data-section-id="66aba2c59905c849edbe7322"]

image.png.1db65f693d958d6faced7a1338850074.png

#2. Use this code to Custom CSS box. Replace Pixabay with your image url.

section[data-section-id="66aba2c59905c849edbe7322"] {
  figure:nth-child(1):hover img {
      content: url(https://cdn.pixabay.com/photo/2023/04/07/05/59/woman-7905583_1280.jpg);
  }
  figure:nth-child(2):hover img {
      content: url(https://cdn.pixabay.com/photo/2024/01/25/10/50/mosque-8531576_1280.jpg);
  }
  figure:nth-child(3):hover img {
      content: url(https://cdn.pixabay.com/photo/2024/02/23/19/37/tufted-duck-8592681_1280.jpg);
  }
  figure:nth-child(4):hover img {
      content: url(https://cdn.pixabay.com/photo/2024/08/02/21/54/antique-car-8940770_1280.jpg);
  }
}

image.thumb.png.c61e2783ef1ae8d0e5e2b7a8faa34385.png

#3. Note

image.png.03948bc7d8daf50838a09348e3fb12af.png

#4. If you can't how to get Image URL, you can see this

 

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
  • Replies 0
  • Views 416
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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.