Animated Gradient Header Button

ezgif-4-2948787bffd8.gif

Look Demo

Add an animated gradient color style to the header button. This plugin uses css editor and works with Squarespace 7.1.


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.

// Animated Gradient Header Button //

.header-actions .btn, .header-menu .header-menu-cta a {
  background: linear-gradient(-45deg, #659999, #d68040, #659999);
  background-size: 400% !important;
  -webkit-animation: Gradient 10s ease infinite !important;
  -moz-animation: Gradient 10s ease infinite !important;
  animation: Gradient 10s ease infinite !important;
}

// Animation Keyframes //

@-webkit-keyframes Gradient {
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}
@-moz-keyframes Gradient {
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}
@keyframes Gradient { 
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}

Customize

This plugin helps targets both the desktop header button, as well as the mobile menu button.

Change the background color values to the colors of your choice. Be sure to set the button style to solid in button settings. Do not change any of the values in the Animation Keyframes.


Previous
Previous

Mini Pill Shaped Text (Image Card)

Next
Next

Center Last Images (Grid Gallery Block)