Jump to content

highlights's hyperlink appears - hover effect

Go to solution Solved by Ziggy,

Recommended Posts

  • Replies 9
  • Views 459
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

6 minutes ago, Rmng_ said:

I've tried it, but it seems to have the opposite effect to what I want ^^ 

What links are you wanting this effect on?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️ Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

Try this Custom CSS:

// Link hover
section[data-section-id="66c333ee981842556112fc78"] {
  p a {
    position: relative;
    padding: 3px;
    margin: -3px;
    &, &:before {
      transition: all 0.3s;
    }
    &:before {
      content: '';
      display: block;
      position: absolute;
      top: 0%;
      right: 0;
      width: 0%;
      height: 100%;
      background: yellow;
      transition: width 0.3s;
      z-index: -1;
    }
    &:hover {
      &:before {
        width: 100%;
        right: auto;
        left: 0;
      }
    }
  }
}

Adapted from this: https://codepen.io/LegendOfLuis/pen/MWWPdRa

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️ Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
5 minutes ago, Ziggy said:

Try this Custom CSS:

// Link hover
section[data-section-id="66c333ee981842556112fc78"] {
  p a {
    position: relative;
    padding: 3px;
    margin: -3px;
    &, &:before {
      transition: all 0.3s;
    }
    &:before {
      content: '';
      display: block;
      position: absolute;
      top: 0%;
      right: 0;
      width: 0%;
      height: 100%;
      background: yellow;
      transition: width 0.3s;
      z-index: -1;
    }
    &:hover {
      &:before {
        width: 100%;
        right: auto;
        left: 0;
      }
    }
  }
}

Adapted from this: https://codepen.io/LegendOfLuis/pen/MWWPdRa

Sorry, I meant “underline” not highlights 

Link to comment
3 minutes ago, Rmng_ said:

Sorry, I meant “underline” not highlights 

13 minutes ago, Rmng_ said:

 

Capture d’écran 2024-09-09 à 15.55.16.png

This already has an underline. Can you explain what you want?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️ Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
2 minutes ago, Ziggy said:

This already has an underline. Can you explain what you want?

I'd like the underline to disappear completely. However when I move the mouse over it, I'd like the underline to reappear.

Link to comment
  • Solution
11 minutes ago, Rmng_ said:

I'd like the underline to disappear completely. However when I move the mouse over it, I'd like the underline to reappear.

That can also be done:

section[data-section-id="66c333ee981842556112fc78"] {
  .sqs-block-html a {background-image:none!important;}
  p a, .sqsrte-small a, .sqsrte-large a {
    text-decoration: none!important;
    transition:ease-in-out 200ms;
    &:hover {
      border-bottom:1px solid #000;
    }
  }  
}

 

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️ Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
6 minutes ago, Ziggy said:

That can also be done:

section[data-section-id="66c333ee981842556112fc78"] {
  .sqs-block-html a {background-image:none!important;}
  p a, .sqsrte-small a, .sqsrte-large a {
    text-decoration: none!important;
    transition:ease-in-out 200ms;
    &:hover {
      border-bottom:1px solid #000;
    }
  }  
}

 

Thanks a lot 😄 it's working !

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.