Jump to content

3 images to change on hover

Recommended Posts

<img src="https://beaverhero.com/wp-content/uploads/2019/06/trees-3464777_640-min.jpg" width="200px" class="img1"/>
<div class="img2">
  <img src="https://beaverhero.com/wp-content/uploads/2019/08/momentum-squarespace.jpg"/>
  <img src="https://beaverhero.com/wp-content/uploads/2019/07/pedro-demo-squarespace-com-1689x1080-500w.jpg"/>
</div>
<style>
  /* hide 2 images */
  .img2 {
  	display: none;
  }
  /* show 2 images on image 1 hover */
  .img1:hover + .img2 {
  	display: block;
  }
</style>

Try add to Code Block

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
2 hours ago, Ptphotography said:

Yes please @tuanphan 

Can you share link to page where you inserted above code? We can check easier.

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.