Jump to content

Customize Image Hover

Recommended Posts

  • Replies 11
  • Views 657
  • Created
  • Last Reply

Top Posters In This Topic

Thanks @tuanphan, I added Caption overlay in hover to Bay Laurel image...is that what you meant? Now I need CSS code to achieve the desired design described below:

For my portfolio page, I'd love to either have the hover change the image to a solid color background and text like this OR have color image change to black and white image with text (text will be title of project).

Any CSS help would be appreciated! THANK YOU!

Edited by BradyAvenue
Link to comment
On 9/9/2021 at 12:12 AM, BradyAvenue said:

Thanks @tuanphan, I added Caption overlay in hover to Bay Laurel image...is that what you meant? Now I need CSS code to achieve the desired design described below:

For my portfolio page, I'd love to either have the hover change the image to a solid color background and text like this OR have color image change to black and white image with text (text will be title of project).

Any CSS help would be appreciated! THANK YOU!

Hi,

Add to Design > Custom CSS

/* Portfolio image hover */
div#page-54a6b53ae4b0c309d017f70d {
figcaption.image-caption-wrapper {
    max-height: unset !important;
    height: 100% !important;
    display: flex;
    justify-content: center;
    align-items: center;
}
.image-caption p {
    margin: 0 !important;
}
}

 

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 9/12/2021 at 11:28 PM, BradyAvenue said:

@tuanphanI added the CSS code, yet the desired hover design is not happening. 

DESIGN DESIRED: For my portfolio page, I'd love to either have the hover change the image to a solid color background and text like this OR have color image change to black and white image with text (text will be title of project).

Just tested on browser & it works here.

Can you add & keep the code? We can check it again easier?

image.thumb.png.c5f50a43e19b9bbe14605dd8942733e9.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
  • 2 weeks later...
On 9/26/2021 at 6:08 AM, BradyAvenue said:

It worked @tuanphan, thank you so very much! However, the link to the pages from those thumbnails is not working now...can you help resolve that?

Use this new code

/* Portfolio image hover */
div#page-54a6b53ae4b0c309d017f70d {
figcaption.image-caption-wrapper {
    max-height: unset !important;
    height: 100% !important;
    display: flex;
    justify-content: center;
    align-items: center;
	pointer-events: none; /* enable click */
}
.image-caption p {
    margin: 0 !important;
}
}

 

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 9/27/2021 at 11:37 AM, BradyAvenue said:

This is AWESOME, thank you @tuanphan - how do I increase the font size of the captions/font of the captions? They are SO small by default.

change this code

.image-caption p {
    margin: 0 !important;
}

to this

.image-caption p {
    margin: 0 !important;
	font-size: 50px !important;
	font-family: monospace;
}

 

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/5/2021 at 7:12 AM, BradyAvenue said:

@tuanphan Thanks so much !! Works great! Except I realized just now it messed up my homepage gallery text. Can you help me create code that will apply JUST to my portfolio page PLEASE 🙂 ?

/* Portfolio image hover */
div#page-54a6b53ae4b0c309d017f70d {
figcaption.image-caption-wrapper {
    max-height: unset !important;
    height: 100% !important;
    display: flex;
    justify-content: center;
    align-items: center;
	pointer-events: none; /* enable click */
}
.image-caption p {
    margin: 0 !important;
	font-size: 50px !important;
	font-family: monospace;
}
}

Use this code

/* Portfolio image hover */
div#page-54a6b53ae4b0c309d017f70d {
figcaption.image-caption-wrapper {
    max-height: unset !important;
    height: 100% !important;
    display: flex;
    justify-content: center;
    align-items: center;
	pointer-events: none; /* enable click */
}
.image-caption p {
    margin: 0 !important;
	font-size: 50px !important;
	font-family: monospace;
}
}

 

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.