Jump to content

Create hover state on text link

Go to solution Solved by yubrajs,

Recommended Posts

Posted

I am having a hard time writing code to create a hover state on the following link. I would like the text to fade to black when hovered. This is on the homepage near the bottom.

Any help is appreciated. Thank you!

Screenshot 2024-01-16 at 11.23.16 PM.png

  • Replies 7
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Posted

Add the below code in your custom css, if you are using h2 as the link tag otherwise update the tag as per text link.

.sqs-html-content h2 a{
	transition: all 0.5s ease;
}
.sqs-html-content h2 a:hover{
	color:#000;
}

 

Posted
11 hours ago, yubrajs said:

Add the below code in your custom css, if you are using h2 as the link tag otherwise update the tag as per text link.

.sqs-html-content h2 a{
	transition: all 0.5s ease;
}
.sqs-html-content h2 a:hover{
	color:#000;
}

 

@yubrajs Unfortunately this did not work.

  • Solution
Posted

Here is the code for underline:

.sqs-html-content h2 a .sqsrte-text-color--black:hover {
  text-decoration-color: #000 !important;
}

 

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.