Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Need help with gallery overlay or opacity


3xfactor7

Question

Site URL: http://harp-nonagon-xem5.squarespace.com

Hey I've been trying to figure out a custom code for my gallery but haven't had any success. I want to add an overlay to the left and right images in my gallery so that the middle image stands out. I don't know if this can be achieved by setting padding parameters for the overlay or opacity so the overlay/opacity doesn't cover the middle image, or if there's a way to just overlay the left and right images so that when you scroll through the gallery the middle image is still overlay free. GoDaddy has this option available and I want to carry it over to my Squarespace account. The first image is what I have currently and the second image is what I would like it to look like.

 

Screen Shot 2021-10-07 at 1.33.20 PM.png

Screen Shot 2021-10-07 at 1.32.59 PM.png

Link to comment
  • Answers 9
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Posted Images

9 answers to this question

Recommended Posts

  • 0
21 hours ago, 3xfactor7 said:

Site URL: http://harp-nonagon-xem5.squarespace.com

Hey I've been trying to figure out a custom code for my gallery but haven't had any success. I want to add an overlay to the left and right images in my gallery so that the middle image stands out. I don't know if this can be achieved by setting padding parameters for the overlay or opacity so the overlay/opacity doesn't cover the middle image, or if there's a way to just overlay the left and right images so that when you scroll through the gallery the middle image is still overlay free. GoDaddy has this option available and I want to carry it over to my Squarespace account. The first image is what I have currently and the second image is what I would like it to look like.

 

Screen Shot 2021-10-07 at 1.33.20 PM.png

Screen Shot 2021-10-07 at 1.32.59 PM.png

Your site is private now, please set it a protected password

Greeting, it's BaNgan from BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Youtube Gallery for Squarespace
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
  • 0

@3xfactor7 Add to Design > Custom CSS

figure.gallery-reel-item[data-active="true"]:after {
    content: "";
    background-color: rgba(0,0,0,0.5);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    positioN: absolute;
}
figure.gallery-reel-item[data-active="true"]:after {
    opacity:0;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 0
13 hours ago, tuanphan said:

@3xfactor7 Add to Design > Custom CSS

figure.gallery-reel-item[data-active="true"]:after {
    content: "";
    background-color: rgba(0,0,0,0.5);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    positioN: absolute;
}
figure.gallery-reel-item[data-active="true"]:after {
    opacity:0;
}

 

Thank you for the help. I entered the code into the custom css but it placed the opacity on the middle image instead of the outer two images. Or in other words I would like the gallery to have an opacity except for the middle image.

Link to comment
  • 0
On 10/11/2021 at 9:56 AM, 3xfactor7 said:

Thank you for the help. I entered the code into the custom css but it placed the opacity on the middle image instead of the outer two images. Or in other words I would like the gallery to have an opacity except for the middle image.

Use this code

figure.gallery-reel-item:after {
    content: "";
    background-color: rgba(0,0,0,0.5);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    positioN: absolute;
}
figure.gallery-reel-item[data-active="true"]:after {
    opacity:0;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 0
19 hours ago, tuanphan said:

Use this code

figure.gallery-reel-item:after {
    content: "";
    background-color: rgba(0,0,0,0.5);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    positioN: absolute;
}
figure.gallery-reel-item[data-active="true"]:after {
    opacity:0;
}

 

Thank you. I entered it and it worked. I have one more question. How do I blur the outer images of the gallery also without losing the white spacing between the images?

Link to comment
  • 0
On 10/14/2021 at 10:27 AM, 3xfactor7 said:

Thank you. I entered it and it worked. I have one more question. How do I blur the outer images of the gallery also without losing the white spacing between the images?

You can contact SS Customer Care to extend it (free)

Website Expired
This account has expired. If you are the site owner, click below to login.

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 0
On 10/15/2021 at 9:20 PM, 3xfactor7 said:

Thanks I subscribed to a plan.

Try this new code

figure.gallery-reel-item {
    margin-left: 0
}
figure.gallery-reel-item:after {
    content: "";
    background-color: rgba(0,0,0,0.5);
    top: 0;
    left: 5px;
    right: 5px;
    width: calc(100% - 5px);
    height: 100%;
    positioN: absolute;
}
figure.gallery-reel-item[data-active="true"]:after {
    opacity:0;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...