Button 2

Add a dynamic inside border that appears on hover - border fades in from the top left and bottom right corners. Below you will find a super-simple tutorial that will guide you through the installation and setup of this plugin.



Step 1: Insert the Button block

Add a Button block and set up the text and link as you wish - the size must be set to 'Small'.

You can change the font and text size depending on your Style Editor settings.



Step 2: Insert the CSS

Insert the following code into your Squarespace site's Custom CSS editor or the Individual Page Header CSS injection (more info below) - the values in bold can be changed to suit your branding and site design. 

Where colour values are added, you can use either of the following:

  • Valid colour name e.g. 'red' or 'yellow'
  • Hex value e.g. #FECB2F
  • RGB(a) value e.g. rgb (255,255,255) or rgba (255,255,255,0.8)  - optional opacity value '0.8'
  • HSL(s) value e.g. hsl (0, 0%, 20%) or hsla (0, 0%, 20%, 0.8) optional opacity value '0.8'

If you need help finding colours and building colour palettes - coolors.io is an awesome resource!

Copy & paste this code:


.sqs-block-button-element--small {
  vertical-align: middle;
  height: 60px;
  line-height: 60px;
  text-align: center;
  transition: 0.5s;
  padding: 0 20px;
  cursor: pointer;
  border: 2px solid;

.sqs-block-button-element--small:hover {
  border: 2px solid rgba(0,160,80,0);
  color: #FFFFFF;

.sqs-block-button-element--small::before, .sqs-block-button-element--small::after {
  width: 100%;
  z-index: 3;
  position: absolute;
  box-sizing: border-box;
  -webkit-transform: scale(0);
  transition: 0.5s;

.sqs-block-button-element--small::before {
  border-top: 3px solid #FFFFFF;
  border-left: 3px solid #FFFFFF;
  -webkit-transform-origin: 0 0%;

.sqs-block-button-element--small::after {
  border-bottom: 3px solid #FFFFFF;
  border-right: 3px solid #FFFFFF;
  -webkit-transform-origin: 100% 100%

.sqs-block-button-element--small:hover::after, .sqs-block-button-element--small:hover::before {
  -webkit-transform: scale(1);

Finding your Custom CSS editor:


Individual Page Header CSS injection


⚡️ Apply, Save & Refresh! ⚡️


Need some help?

If you need help installing your plugin or you find that the code provided is not working - please feel free to contact us by clicking the link below.