Grid Gallery 2

GridGallery5.gif

Add a sliding hover-over style with animated 'fade' titles using this Grid Gallery plugin on your Squarespace site. 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:

/* GRID GALLERY STYLE 2 CSS */

@media all and (min-width:770px){
  .sqs-block-gallery .sqs-gallery-design-grid .slide:hover .image-slide-title{
    opacity: 1;
  }
  .sqs-block-gallery .sqs-gallery-design-grid .slide:hover  a:before{
    position: absolute;
    content: ' ';
    display: block;
    height: 100%;
    width: 50%;
    left: 0%;
    top: 0px;
    z-index: 999999999999999;
  }
  .sqs-block-gallery .sqs-gallery-design-grid .slide:hover  a:after{
    position: absolute;
    content: ' ';
    display: block;
    height: 100%;
    width: 50%;
    right: 0%;
    top: 0px;
    z-index: 999999999999999;
  }
  .sqs-block-gallery .sqs-gallery-design-grid .slide div{
    overflow: hidden;
  }
  .sqs-block-gallery .sqs-gallery-design-grid .slide a:before{
    position: absolute;
    content: ' ';
    display: block;
    height: 100%;
    width: 50%;
    left: 110%;
    top: 0px;
    background-color: rgba(0,0,0,0.5);
    z-index: 999999999999999;
    -webkit-transition: all 600ms cubic-bezier(0.165, 0.84, 0.44, 1);
    transition:         all 600ms cubic-bezier(0.165, 0.84, 0.44, 1);
  }
  .sqs-block-gallery .sqs-gallery-design-grid .slide a:after{
    position: absolute;
    content: ' ';
    display: block;
    height: 100%;
    width: 50%;
    right: 110%;
    top: 0px;
    background-color: rgba(0,0,0,0.5);
    z-index: 999999999999999;
    -webkit-transition: all 600ms cubic-bezier(0.165, 0.84, 0.44, 1);
    transition:         all 600ms cubic-bezier(0.165, 0.84, 0.44, 1);
  }
  .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 .image-slide-title{
    position: absolute;
    opacity: 0;
    top: 40%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    -webkit-transition: all .6s ease-in-out !important;
    -moz-transition: all .6s ease-in-out !important;
    -o-transition: all .6s ease-in-out !important;
    transition: all .6s ease-in-out !important;
    z-index:99999999999;
    font-size: 50px !important;
    font-weight: 400 !important;
    color: #ffffff!important;
    padding: 10px;
  }
}

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