Jump to content

Showing a different image on hover and removing effects for biography page

Recommended Posts

Posted

Site URL: http://lobster-finch-xh2g.squarespace.com

Hi there,

I need help with two things. This is my site: 

lobster-finch-xh2g.squarespace.com password: ilovedogs1234

For the people page, I am firstly looking to have the image of the person change upon hover (i.e) the person will show in black and white when loading the page and then the image changes to colour when its hovered on. What code do I need to do this?

Secondly, when clicking onto the person and the bioigraphy appearing, the colour picture on the right hand side seems to have adopted a zoom in effect that I can't figure out why?

The code i've entered is this:

.user-items-list-item-container[data-section-id="6703ef82f1590279dba6c359"] {
    /* The rest of the styles remain here */
}

.user-items-list-item-container[data-section-id="6703ef82f1590279dba6c359"] li.list-item {
    position: static;
}

.user-items-list-item-container[data-section-id="6703ef82f1590279dba6c359"] .list-item-content__button-container {
    position: static;
}

.user-items-list-item-container[data-section-id="6703ef82f1590279dba6c359"] a.list-item-content__button.sqs-block-button-element {
    position: static;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    color: transparent !important;
    background-color: transparent !important;
    border: none !important;
}

.user-items-list-item-container[data-section-id="6703ef82f1590279dba6c359"] .list-item-content__button-container {
    position: static !important;
    transform: unset !important;
}

.user-items-list-item-container[data-section-id="6703ef82f1590279dba6c359"] a.list-item-content__button.sqs-block-button-element:before {
    visibility: hidden;
}

.user-items-list-item-container[data-section-id="6703ef82f1590279dba6c359"] .user-items-list-carousel__slide {
    pointer-events: initial !important;
    user-select: unset !important;
}

.user-items-list-item-container[data-section-id="6703ef82f1590279dba6c359"] .user-items-list-carousel__gutter {
    cursor: pointer;
}

Hope this makes sense!

  • Replies 1
  • Views 487
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Posted
12 hours ago, Freddi_F said:

Site URL: http://lobster-finch-xh2g.squarespace.com

Hi there,

I need help with two things. This is my site: 

lobster-finch-xh2g.squarespace.com password: ilovedogs1234

For the people page, I am firstly looking to have the image of the person change upon hover (i.e) the person will show in black and white when loading the page and then the image changes to colour when its hovered on. What code do I need to do this?

Secondly, when clicking onto the person and the bioigraphy appearing, the colour picture on the right hand side seems to have adopted a zoom in effect that I can't figure out why?

The code i've entered is this:

.user-items-list-item-container[data-section-id="6703ef82f1590279dba6c359"] {
    /* The rest of the styles remain here */
}

.user-items-list-item-container[data-section-id="6703ef82f1590279dba6c359"] li.list-item {
    position: static;
}

.user-items-list-item-container[data-section-id="6703ef82f1590279dba6c359"] .list-item-content__button-container {
    position: static;
}

.user-items-list-item-container[data-section-id="6703ef82f1590279dba6c359"] a.list-item-content__button.sqs-block-button-element {
    position: static;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    color: transparent !important;
    background-color: transparent !important;
    border: none !important;
}

.user-items-list-item-container[data-section-id="6703ef82f1590279dba6c359"] .list-item-content__button-container {
    position: static !important;
    transform: unset !important;
}

.user-items-list-item-container[data-section-id="6703ef82f1590279dba6c359"] a.list-item-content__button.sqs-block-button-element:before {
    visibility: hidden;
}

.user-items-list-item-container[data-section-id="6703ef82f1590279dba6c359"] .user-items-list-carousel__slide {
    pointer-events: initial !important;
    user-select: unset !important;
}

.user-items-list-item-container[data-section-id="6703ef82f1590279dba6c359"] .user-items-list-carousel__gutter {
    cursor: pointer;
}

Hope this makes sense!

Here is code for the first one. And for the second, I can't see any zoom effect on there. 

[data-section-id="6703ef82f1590279dba6c359"] .list-item:hover img {
    filter: grayscale(0) !important;
}

 

Screenshot_233.png

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

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.