Jump to content

Modify Portfolio Cover

Recommended Posts

Hello there!

I am not sure if it is possible what I am trying to achieve.
This is what my website currently looks like https://www.lacalifornie.es/studio

I will like to modify the cover of each project. Remove the hover effect (white overlay and Project title) and instead have the Project Title layout at the bottom of the imagen with a color background. Both the image and title should be linked to the project page. See mock-up for reference. 

Thanks in advance!
image.thumb.png.bf3f1d3e962d7d5c7a9ffca2ee6322ee.png

Link to comment
  • Replies 11
  • Views 1.5k
  • Created
  • Last Reply

Top Posters In This Topic

You can add this to Website Tools (under Not Linked) > Custom CSS


a.grid-item {
    height: unset !important;
    padding-bottom: 0 !important;
}
.portfolio-text {
    position: relative !important;
    opacity: 1 !important;
    padding: 5px !important;
    background-color: white;
}

 

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

Use this new code

a.grid-item {
    height: unset !important;
    padding-bottom: 0 !important;
}
.portfolio-text {
    opacity: 1 !important;
    padding: 5px !important;
    background-color: rgba(255,255,255,0.75);
    top: unset !important;
}
h3.portfolio-title {
    font-size: 20px !important;
}

image.thumb.png.c00936fef7b2da02f4454263969dcb9c.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

To remove overlay on hover, use this code

a.grid-item {
    height: unset !important;
    padding-bottom: 0 !important;
    opacity: 1 !important;
}
.portfolio-text {
    opacity: 1 !important;
    padding: 5px !important;
    background-color: rgba(255,255,255,0.75);
    top: unset !important;
}
h3.portfolio-title {
    font-size: 20px !important;
}
.portfolio-overlay {
    opacity: 0 !important;
}

to make text slide up on hover, like as example site, add this CSS under

/* Text hover slide up */
.portfolio-text {
    transform: translateY(100px);
    transition: all 0.3s ease;
}

a.grid-item:hover .portfolio-text {
    transform: translateY(0);
    transition: all 0.3s ease;
}

 

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 12/1/2023 at 1:51 AM, LucyBold said:

Thank you @tuanphan!
The code to remove the overlay on hover worked perfectly but not the other one it does a weird jump. I wonder if it is simpler and possible to have what I achieve  w you code show and currently live https://www.lacalifornie.es/studio show on hover?

Which jump? I see nothing jump here. Can you describe in more detail?

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

Currently there is no jump because I did not add that part of the code.

/* Text hover slide up */
.portfolio-text {
    transform: translateY(100px);
    transition: all 0.3s ease;
}

a.grid-item:hover .portfolio-text {
    transform: translateY(0);
    transition: all 0.3s ease;
}

But if I do is when the jump happens.

I wonder If making what i currently have https://www.lacalifornie.es/studio but show on hover is the right way to go. Would this be possible @tuanphan?

Thank you!

Link to comment
On 12/6/2023 at 3:34 AM, LucyBold said:

Currently there is no jump because I did not add that part of the code.

/* Text hover slide up */
.portfolio-text {
    transform: translateY(100px);
    transition: all 0.3s ease;
}

a.grid-item:hover .portfolio-text {
    transform: translateY(0);
    transition: all 0.3s ease;
}

But if I do is when the jump happens.

I wonder If making what i currently have https://www.lacalifornie.es/studio but show on hover is the right way to go. Would this be possible @tuanphan?

Thank you!

Use this new code

/* Text hover slide up */
.portfolio-text {
    transform: translateY(100px);
    transition: all 0.3s ease !important;
}
a.grid-item:hover .portfolio-text {
    transform: translateY(0);
    transition: all 0.3s ease !important;
}
a.grid-item {
    overflow: hidden;
}

 

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 12/8/2023 at 12:48 AM, LucyBold said:

Thank you! @tuanphan! this works great on Desktop. Could we not have this hover behaviour happen on MOBILE?

 

I checked on Chrome Mobile Preview & it works, Can you check it again?

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.