Jump to content

How to have it so when you click an image it changes and when you click again it reverts to original image?

Recommended Posts

Posted

Site URL: https://pmsquare.com/sass-anywhere

Hello. How would I get an image to change into a different image when clicked on, and then when clicked on again it would revert to the original image? I want to do this for the purpose of being able for someone to highlight the tools on my page when clicked on to make it more interactive.

  • Replies 1
  • Views 484
  • Created
  • Last Reply
Posted
On 9/2/2021 at 2:39 AM, pkoziol said:

Site URL: https://pmsquare.com/sass-anywhere

Hello. How would I get an image to change into a different image when clicked on, and then when clicked on again it would revert to the original image? I want to do this for the purpose of being able for someone to highlight the tools on my page when clicked on to make it more interactive.

Hi,

This is possible with javascript or CSS code.

The page url doesn't exist. Can you check it again?

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!)

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.