Ghost Plugins
Legacy Plugin

Fade Out and Underline Button

ButtonsSquarespace 7.1
Fade Out and Underline Button preview

The original library, featuring hundreds of copy-and-paste plugins for Squarespace. These legacy plugins are preserved as they were originally released and are available as-is. For no-code plugins with visual editing and live previews, explore the current plugin library.

Overview

Add this animation to any button block. This plugin uses css editor and works with all template families.

Plugin Delivery

Free Plugin

This is a free plugin from the original Ghost Plugins library. Copy the code below and paste it into your Squarespace site. No purchase or account needed.

Squarespace Compatibility & Requirements

Compatibility notes preserved from the original release.

7.1Supported
Custom CSSRequired

Install

Legacy plugins install by hand, there is no Plugin Studio build for this one.

  1. 1Copy the code from the Code Documentation section below.
  2. 2In Squarespace, open Website, Pages, Website Tools, Custom CSS for CSS, or Settings, Advanced, Code Injection for HTML and JavaScript.
  3. 3Paste the code, save, then refresh your site to see the plugin running.

Code Documentation

CSS
// Fade Out Line Buttom - Left To Right //

.sqs-block-button-element--small {
 position:relative;
 height: 60px;
 line-height: 60px;
 text-align: center;
 transition: 0.5s;
 padding: 0 20px;
 cursor: pointer;
 -webkit-transition:0.5s;
}

.sqs-block-button-element--small:hover {
 background-color: transparent;
 border-color: transparent;
 color: #000000;
}
 .sqs-block-button-element--small:hover:before{
 transition-delay: .2s;
}

.sqs-block-button-element--small::before{
 width: 0%;
 height:100%;
 z-index: 3;
 content:'';
 position: absolute;
 bottom:-1px;
 left:0;
 box-sizing: border-box;
 transition: .2s;

}

.sqs-block-button-element--small:hover::before {
 width: 100% !important;
 transition: .7s;
}

.sqs-block-button-element--small::before {
 border-bottom: 2px solid #000000;
}

// Fade Out Line Buttom - Right To Left //

.sqs-block-button-element--small {
 position:relative;
 height: 60px;
 line-height: 60px;
 text-align: center;
 transition: 0.5s;
 padding: 0 20px;
 cursor: pointer;
 -webkit-transition:0.5s;
}

.sqs-block-button-element--small:hover {
 background-color: transparent;
 border-color: transparent;
 color: #000000;
}
 .sqs-block-button-element--small:hover:before{
 transition-delay: .2s;
}

.sqs-block-button-element--small::before{
 width: 0%;
 height: 100%;
 z-index: 3;
 content: '';
 position: absolute;
 bottom: -1px;
 right: 0;
 box-sizing: border-box;
 transition: .2s;

}

.sqs-block-button-element--small:hover::before {
 width: 100% !important;
 transition: .7s;
}

.sqs-block-button-element--small::before {
 border-bottom: 2px solid #000000;
}

// Fade Out Line Buttom - Middle Stretch Out //

.sqs-block-button-element--small {
 position:relative;
 height: 60px;
 line-height: 60px;
 text-align: center;
 transition: 0.5s;
 padding: 0 20px;
 cursor: pointer;
 -webkit-transition:0.5s;
}

.sqs-block-button-element--small:hover {
 background-color: transparent;
 border-color: transparent;
 color: #000000;
}
.sqs-block-button-element--small:hover:before{
 transition-delay: .2s;
}

.sqs-block-button-element--small::before{
 width: 0%;
 height:100%;
 z-index: 3;
 content:'';
 position: absolute;
 bottom:-1px;
 right:50%;
 box-sizing: border-box;
 transition: .2s;

}

.sqs-block-button-element--small:hover::before {
 width: 100% !important;
 right: 0;
 transition: .7s;
}

.sqs-block-button-element--small::before {
 border-bottom: 2px solid #000000;
}

// Fade Out Line Buttom - Outside Stretch In //

.sqs-block-button-element--small {
 position:relative;
 height: 60px;
 line-height: 60px;
 text-align: center;
 transition: 0.5s;
 padding: 0 20px;
 cursor: pointer;
 -webkit-transition:0.5s;
}

.sqs-block-button-element--small:hover {
 background-color: transparent;
 border-color: transparent;
 color: #000000;
}
.sqs-block-button-element--small:hover:before, .sqs-block-button-element--small:hover:after{
 transition-delay: .2s;
}

.sqs-block-button-element--small::before{
 width: 0%;
 height:100%;
 z-index: 3;
 content:'';
 position: absolute;
 bottom:-1px;
 left: 0;
 box-sizing: border-box;
 transition: .4s;
}

.sqs-block-button-element--small::after{
 width: 0%;
 height:100%;
 z-index: 3;
 content:'';
 position: absolute;
 bottom:-1px;
 right: 0;
 box-sizing: border-box;
 transition: .4s;
}

.sqs-block-button-element--small:hover::before {
 width: 100% !important;
 transition: 1.4s;
}

.sqs-block-button-element--small:hover::after {
 width: 100% !important;
 transition: 1.4s;
}

.sqs-block-button-element--small::before, .sqs-block-button-element--small::after {
 border-bottom: 2px solid #000000;
}

Classes and Styling

Selectors and variables this plugin uses, target them in Custom CSS to restyle it.

--small.sqs-block-button-element--small

FAQ

Answers to common questions about setup, customization, and troubleshooting.

Is this plugin free?

Yes. Legacy plugins are free to use on any site, no account or purchase needed.

Will it work on my Squarespace version?

Legacy plugins were built for the version noted in Squarespace Compatibility & Requirements and are provided as-is. Newer platform changes may require small tweaks.

Can I customize it?

Yes. Edit the values in Script Settings or override the selectors listed under Classes and Styling in your Custom CSS.

Do you support legacy plugins?

Legacy plugins are no longer updated. For maintained plugins with Plugin Studio and ongoing support, browse the current plugin library.

Changelog

A history of updates released for this plugin.

Original release

Archived exactly as it shipped in the original plugin library. No further updates are planned for legacy plugins.

Customizable Options

Add a button to any page with the solid style.

Once a button has been added and saved, go to the Custom CSS Editor. There are 4 styles available. Copy and paste one of the codes below into the Custom CSS Editor box.

Display line from left to right

Display line from right to left

Display line from the middle and stretch out

Display line from the outside and stretch in

Replace the color #000000 value with the color of your choice.

The code works for the small button block. If you want to modify a medium or large button, replace all .sqs-block-button-element--small text with either .sqs-block-button-element--medium or .sqs-block-button-element--large.

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