Jump to content

Hover effects for Grid Gallery Block in 7.0

Recommended Posts

You have not add the Grid gallery block yet right?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - Lightbox captions only mode)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace
🚀 Learn how to rank new pages on Google in 48 hours!

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
4 hours ago, saylinds said:

@tuanphan @bangank36 I added a test page here with a Grid Gallery Block if that's helpful!

There are 2 effects on this demo, which one you like

https://beyondspace7-1.squarespace.com/?password=1234

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - Lightbox captions only mode)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace
🚀 Learn how to rank new pages on Google in 48 hours!

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
  • 2 weeks later...
On 12/2/2020 at 2:54 AM, saylinds said:

@tuanphan Did I add the caption correctly? Is there anything else you need? Appreciate your help!

Add to Home > Design > Custom CSS

/* Gallery hover */
body#collection-5fb43137d46bfe51eacdc245 {
.slide:hover .image-slide-title {
    opacity: 1;
}
.slide:hover a:after {
    opacity: 1;
}
.slide a:after {
    content: "";
    background: rgba(0,0,0,0.5);
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    opacity: 0;
}
.image-slide-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 100%;
    text-align: center;
    opacity: 0;
    transition: all 0.5s;
    color: white;
z-index: 10000;
}
.slide a:after {
    content: "";
    background: rgba(0,0,0,0.5);
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    opacity: 0;
}
.slide:hover a:after {
    opacity: 1;
}
.slide:hover .image-slide-title {
    opacity: 1;
}
}

 

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
17 hours ago, tuanphan said:

Add to Home > Design > Custom CSS


/* Gallery hover */
body#collection-5fb43137d46bfe51eacdc245 {
.slide:hover .image-slide-title {
    opacity: 1;
}
.slide:hover a:after {
    opacity: 1;
}
.slide a:after {
    content: "";
    background: rgba(0,0,0,0.5);
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    opacity: 0;
}
.image-slide-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 100%;
    text-align: center;
    opacity: 0;
    transition: all 0.5s;
    color: white;
z-index: 10000;
}
.slide a:after {
    content: "";
    background: rgba(0,0,0,0.5);
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    opacity: 0;
}
.slide:hover a:after {
    opacity: 1;
}
.slide:hover .image-slide-title {
    opacity: 1;
}
}

 

Thank you so much!

Link to comment
  • 4 months later...
15 hours ago, magen said:

I am also looking to do this with my site staygoldencreative.com on the home page. I do not see a place to add captions, but have added a title to the first image - ThirdLove. 

Any assistance is greatly appreciated! I am using 7.0 brine template.

It looks like you solved?

image.thumb.png.9a5b7c49d2cf2e3f7c87ac6f449d8f31.png

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
  • 1 month later...
7 hours ago, mal1234 said:

Hi @tuanphan! I'm trying to add the hover text reveal to my site's gallery blocks (maliahee.design), but nothing seems to be working. I tried adding the above code to Custom CSS, but nothing's changing. I would greatly appreciate it if you could help me out! Thanks so much!

Hi. You want

Hover image >> Show overlay

OR

Hover image >> Show overlay + title?

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 6/22/2021 at 11:52 PM, mal1234 said:

@tuanphan, added a few demo titles. Is there also a possibility to make words in the photo's caption appear on the hover too?

Add to Design > Custom CSS

/* overlay and title on hover */
.slide a:after {
    position: absolute;
    content: "";
    background: rgba(0,0,0,0.5);
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.5s;
	pointer-events: none;
}
.slide a {
    position: relative;
}
.slide a {
    position: relative;
    opacity: 1 !important;
}
.slide:hover a:after {
	opacity: 1;
}
.image-slide-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 100%;
    text-align: center;
    color: white;
    opacity: 0;
    z-index: 1000;
    transition: all 0.5s;
	pointer-events: none;
}
.slide:hover .image-slide-title {
    opacity: 1;
}

 

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.