sira Posted July 3, 2016 Posted July 3, 2016 (edited) I am trying to create a hover box with the title of my pieces on my grid gallery.I have no CSS experience, I would really appreciate the help! My template is: Ishimoto. Here's my site: http://www.studiobanan.com/ Edited July 3, 2016 by sira Initial Revision
Solution alxfyv Posted July 4, 2016 Solution Posted July 4, 2016 You might try copying and pasting this in Design > Custom CSS: /* ** in gallery grid, set a hover over slide effect to ** display slide title on partially transparent ** overlay */ .sqs-gallery.sqs-gallery-design-grid .slide .margin-wrapper .image-slide-title { position: absolute; bottom: 0; width: 100%; height: 0; color: white; background-color: rgba(194, 194, 163, .8); opacity: 0; transition: all .25s ease-in; } .sqs-gallery.sqs-gallery-design-grid .slide .margin-wrapper:hover .image-slide-title { height: 40%; opacity: .9; } This should give you the effect, on hover over a slide, of a partially transparent overlay sliding up over the image and displaying the slide title. Let me know whether this works and, if so, whether it's the type of effect you have in mind. -Steve Lilian and tunglmyrkvi 2 I'm a retired attorney who was asked by a friend to build a website. In a prior lifetime, in a galaxy far, far away and long, long ago, I was a computer systems analyst / programmer. I'm a novice autodidact in CSS, JavaScript and HTML learning in part by example.. I've asked questions on this forum and been lucky enough to have others help me, so I'm inclined to answer any question I can. Pay it forward.
conversiontracking Posted July 4, 2016 Posted July 4, 2016 (edited) Hi, Not sure if you're using gallery blocks or gallery pages? I've developed a commercial plugin that adds grid gallery block titles in front of the image with smooth hover effects. You can add a background color as well. So if a result like the image below is what you're after, check out the plugin here. – Petri / Vox Pop Edited July 4, 2016 by voxpopagency Initial Revision Freelance Squarespace developer making plugins like Full-Width Blocks, Hover effects for grid gallery and the Darkmode plugin. I know Squarespace inside out and I'm able to solve pretty much any Squarespace code problem. Get in touch here!
adeuitch Posted July 7, 2016 Posted July 7, 2016 I have been looking for something like this, thank you! I'm still a newbie to CSS, what about your code makes it slide up from the bottom? What about it can be modified to have it slide in other directions or simply appear or zoom into the overlay? Also is there a way to maintain the title to the center of the image? Sorry for the multiple questions, just interested to learn.
alxfyv Posted July 8, 2016 Posted July 8, 2016 @adeuitch: So as not to hijack @sira's question with material not directly responsive to it, if you will pose a separate question of your own and leave a comment here with the question title and url, I will try to help. Try to decide on what effect you want for your site and pose your question as how to get that. Don't forget to give your template name and site url. As examples of the kind of hover effects that can be achieved, see Hover.css and CSS Image Hover Effects. I'm a retired attorney who was asked by a friend to build a website. In a prior lifetime, in a galaxy far, far away and long, long ago, I was a computer systems analyst / programmer. I'm a novice autodidact in CSS, JavaScript and HTML learning in part by example.. I've asked questions on this forum and been lucky enough to have others help me, so I'm inclined to answer any question I can. Pay it forward.
Johnny_A Posted February 23, 2017 Posted February 23, 2017 Thanks so much for this! Wondering if there is a simple way to have this effect display the description vs the title (or title and description) within the same context. I'm using the mercer template and this is the first script I've found that works with my site. Best!
sevagch Posted November 16, 2018 Posted November 16, 2018 Hey guys. I'm using the Horizon template in Squarespace and I want to have the title hover effect with a desaturation or blur of the photo's title and caption in a gallery block on the individual images on specific pages. Been trying to figure this out for months and cannot figure it out.
tanob23 Posted January 13, 2020 Posted January 13, 2020 Hello! I'm trying to use this on my site, and it's sort of working, but I would like the text to appear in the center of the image, right now it appears at the very top. Ho would I accomplish that? Thank you!
Lilian Posted June 15, 2020 Posted June 15, 2020 On 7/3/2016 at 11:49 PM, alxfyv said: You might try copying and pasting this in Design > Custom CSS: /* ** in gallery grid, set a hover over slide effect to ** display slide title on partially transparent ** overlay */ .sqs-gallery.sqs-gallery-design-grid .slide .margin-wrapper .image-slide-title { position: absolute; bottom: 0; width: 100%; height: 0; color: white; background-color: rgba(194, 194, 163, .8); opacity: 0; transition: all .25s ease-in; } .sqs-gallery.sqs-gallery-design-grid .slide .margin-wrapper:hover .image-slide-title { height: 40%; opacity: .9; } This should give you the effect, on hover over a slide, of a partially transparent overlay sliding up over the image and displaying the slide title. Let me know whether this works and, if so, whether it's the type of effect you have in mind. -Steve Hi there Steve, Thank you for the code. I have it on my website, however I would like to know if it's possible to center the text. Regards, Lili
Guest Posted September 8, 2020 Posted September 8, 2020 I have a similar question, does anyone know how to make the text sit in the box without being cut off? At the moment the bottom on the gs and ys aren't visible
Guest Posted September 8, 2020 Posted September 8, 2020 I have a similar question, does anyone know how to make the text sit in the box without being cut off? At the moment the bottom on the gs and ys aren't visible
tuanphan Posted September 12, 2020 Posted September 12, 2020 On 9/8/2020 at 12:12 PM, sofiawilson said: I have a similar question, does anyone know how to make the text sit in the box without being cut off? At the moment the bottom on the gs and ys aren't visible Can you share link to gallery? We can check easier. 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!)
MMEbyKiandraTrickett Posted March 16, 2021 Posted March 16, 2021 I've put this on the below site. Interested to hear how people have centred the text and wrap? (So the text doesn't go to the top) Tried a couple different CSS add ons and hasn't worked. www.allnaturalkitchen.com.au PW ENTER
tuanphan Posted March 23, 2021 Posted March 23, 2021 On 3/16/2021 at 1:54 PM, MMEbyKiandraTrickett said: I've put this on the below site. Interested to hear how people have centred the text and wrap? (So the text doesn't go to the top) Tried a couple different CSS add ons and hasn't worked. www.allnaturalkitchen.com.au PW ENTER Try this guide. 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!)
noobiedesign Posted January 31, 2022 Posted January 31, 2022 On 2/22/2017 at 9:55 PM, Johnny_A said: Thanks so much for this! Wondering if there is a simple way to have this effect display the description vs the title (or title and description) within the same context. I'm using the mercer template and this is the first script I've found that works with my site. Best! Also wondering this. I need both the title and description shown on the hover. Basically, the same thing you get when you do slideshow gallery and toggle the hover option.
otilia Posted May 18, 2022 Posted May 18, 2022 Following this: I would like to have text hover over image sin a Gallery Masonry, anyone can help? Many thanks!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment