Jump to content

Make image change on hover, and be able to click

Recommended Posts

Hi, I currently have a code block in place which makes an image change on hover but I am trying to add a piece of code which would allow users to click the image as well.

Here is the code that I have used:

<div class="image-swap">
  <img src="https://static1.squarespace.com/static/63d01395bbc74427afd24744/t/63e16e29be80e210990f7408/1675718188012/Untitled+design+%28100%29.png">
  <img src="https://static1.squarespace.com/static/63d01395bbc74427afd24744/t/63e16e00316960241b67526b/1675718148357/Untitled+design+-+2023-02-06T161524.396.png">

Link to comment
  • Replies 1
  • Views 239
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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.