Jump to content

How to Custom Hover Effect

Recommended Posts

Hi- I am trying to get a hover effect over text. I want it where if you hover over the text it changes to a GIF AND keeps the text visible. Please let me know what to add to the code. Thanks.

 

// Hover GIF Text ABOUT US//
#block-953252b406bf6ce5a768:hover 
{
  content: url("https://static1.squarespace.com/static/656689508eb6cf077dbca3a8/t/65d27f186c03c044d215ca07/1708293915513/ABOUT+US+%281%29.gif");
}

Link to comment
  • Replies 1
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hi,

Can you share link page where you use text? We can check & give exact code easier

But you can also try this code first (I changed content to background)

#block-953252b406bf6ce5a768:hover {
  background-image: url("https://static1.squarespace.com/static/656689508eb6cf077dbca3a8/t/65d27f186c03c044d215ca07/1708293915513/ABOUT+US+%281%29.gif");
	background-size: cover;
background-repeat: no-repeat;
}

 

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

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.