Grid Gallery 4

GridGallery4.gif

Add a 'highlight' hover-effect using this Grid Gallery plugin on your Squarespace site. The image that you hover your mouse over will highlight and all the others will have a dark overlay. Below you will find a super-simple tutorial that will guide you through the installation and setup of this plugin.


Step 1: Create a Grid Gallery

Insert a Gallery Block and set it to the 'Grid' style following our recommended settings:

Aspect Ratio - 1:1 Square 
Crop Images - ✔
Show Title - ✔
Thumbnails Per Row - 2
Grid Padding - 20
Open Links in New Window - ✔


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 (optional opacity values '0.8') 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:

@media all and (min-width:770px){
  .sqs-block-gallery .sqs-gallery-design-grid img{
    -webkit-transition: all .3s ease-in-out !important;
    -moz-transition: all .3s ease-in-out !important;
    -o-transition: all .3s ease-in-out !important;
    transition: all .3s ease-in-out !important;
  }
  .sqs-block-gallery .sqs-gallery-design-grid .slide:hover img{
    -webkit-filter: brightness(100%);
    filter: brightness(100%);
  }
  .sqs-block-gallery .sqs-gallery-design-grid:hover img{
    -webkit-filter: brightness(30%); 
    filter: brightness(30%);
  }
}

Site wide CSS Injection:

sitewide-1.png
sitewide-2.png
sitewide-3.png
sitewide-4.png
 

Individual Page Header CSS Injection:

If using this method, be sure to wrap your CSS in <style></style> tags as shown in image 4!

header-2.png
header-3.png
header-4.png
 

Step 3: 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.

Noughts & Ones