Pressed Down Button (7.1 Header Version)
Description
Add a pressed down effect to the header and mobile menu button – along with a solid drop shadow style. This plugin uses css editor and works Squarespace 7.1.
How To Install
Enable the header button via header settings.
Once the header button has been added and saved, go to the Custom CSS Editor. Copy and paste the code below into the Custom CSS Editor box.
// Pressed Down Button - 7.1 Header Button // .header-actions .btn { box-shadow: 5px 5px #FF6969; transition: all ease-in .05s; } .header-actions .btn:active { box-shadow: none; transform: translateY(4px) !important; transition: all ease-in .05s; } // Press Down Button - 7.1 Mobile Menu Button // .header-menu .header-menu-cta a { box-shadow: 5px 5px #FF6969; transition: all ease-in .05s; } .header-menu .header-menu-cta:active a { box-shadow: none; transform: translateY(4px) !important; transition: all ease-in .05s; }
Customize
Adjust the box shadow color to your liking for both the desktop header button and the mobile menu button.
You do not need to change the transform or transition values. This helps create the effect of the button being pushed down.
Be sure to keep :active at the end of each last code.