3xfactor7 Posted October 7, 2021 Share Posted October 7, 2021 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. Link to comment
Beyondspace Posted October 8, 2021 Share Posted October 8, 2021 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. Your site is private now, please set it a protected password BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight 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 Posted October 8, 2021 Author Share Posted October 8, 2021 5 hours ago, bangank36 said: Your site is private now, please set it a protected password Thanks I have changed it. The password is found1 Link to comment
tuanphan Posted October 10, 2021 Share Posted October 10, 2021 @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
3xfactor7 Posted October 11, 2021 Author Share Posted October 11, 2021 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
tuanphan Posted October 13, 2021 Share Posted October 13, 2021 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
3xfactor7 Posted October 14, 2021 Author Share Posted October 14, 2021 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
tuanphan Posted October 15, 2021 Share Posted October 15, 2021 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
3xfactor7 Posted October 15, 2021 Author Share Posted October 15, 2021 9 hours ago, tuanphan said: 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. Thanks I subscribed to a plan. Link to comment
tuanphan Posted October 18, 2021 Share Posted October 18, 2021 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment