Hyperlink Link Animation

Look Demo

Simple animation added to hyperlink text. This plugin uses css editor and works with all template families in Squarespace 7.0.

How To Install

From your Squarespace account, go to the Custom CSS Editor. Copy and paste the code below into the Custom CSS Editor box.

// Hyperlink Line Animation //

h1 a {
  position:relative;
  transition: 0.5s;
  cursor: pointer;
  border-bottom: 3px solid #000000;
}

h1 a::before{
  border-bottom: 3px solid #FFFFFF;
  width: 0%;
  height:100%;
  z-index: 3;
  content:'';
  position: absolute;
  bottom: -3px;
  box-sizing: border-box;
  transition: .5s;

}

h1 a:hover::before {
  width: 100% !important;
  transition: .5s;
}

Customize

Change the h1 text property to the one you’d like to target. This can be either h1, h2, or h3.

Adjust the bottom-border thickness and color values #00000 and #FFFFFF to your liking.

License

This plugin comes with an Unlimited Use License. View License Terms

Previous
Previous

Image Overlay On Text

Next
Next

Hide Announcement Bar Close Icon