Jump to content

Need help with gallery overlay or opacity

Recommended Posts

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
  • Replies 9
  • Views 636
  • Created
  • Last Reply

Top Posters In This Topic

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

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

@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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
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
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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
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
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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.