Jump to content

Hover effects for Grid Gallery Block in 7.0

Recommended Posts

You have not add the Grid gallery block yet right?

Greeting, it's 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, Lightbox Studio plugin
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
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

Greeting, it's 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, Lightbox Studio plugin
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

@saylinds Your site is 7.0 with Gallery Block. Above code for SS 7.1. with Gallery Section.

Can you add some demo captions? We can code effect easier.

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

@tuanphan @bangank36 Hi I just wanted to check in to make sure you all saw that I updated the captions here! Thanks again for your help!

I don't see caption?

image.thumb.png.4a2e1b5f91a18bcdc49b96aa05923a0c.png

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

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

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

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
6 hours ago, mal1234 said:

 

@tuanphan, I want hover image >> show overlay + title

Thank you!

I don't see any title. cCan you add some demo title? We can check code easier

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

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

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.