Jump to content

Change image on hover

Recommended Posts

  • Replies 5
  • Created
  • Last Reply

Add to Home > Design > Custom CSS

.header-title-logo a:hover img {
    visibility: hidden;
}
.header-title-logo a:hover {
    background-image: url(https://beaverhero.com/wp-content/uploads/2019/07/coffee-beans-1082116_640-min.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

 

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 3/4/2020 at 8:57 AM, tuanphan said:

Add to Home > Design > Custom CSS


.header-title-logo a:hover img {
    visibility: hidden;
}
.header-title-logo a:hover {
    background-image: url(https://beaverhero.com/wp-content/uploads/2019/07/coffee-beans-1082116_640-min.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

 

Thank you for this @tuanphan! I added the following to ease the transition but it's not working. Do you have advice on this?

// LOGO //

.header-title-logo a:hover img {
    visibility: hidden;
 -webkit-transition: background-image 0.2s ease-in-out;
transition: background-image 0.2s ease-in-out;
}
.header-title-logo a:hover {
    background-image: url(https://static1.squarespace.com/static/5e3323ee22d30704f3fe0f1e/t/5e6a37a3bb6219675f5639ba/1584019363322/nopi+logo+color.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
  -webkit-transition: background-image 0.5s ease-in-out;
transition: background-image 0.5s ease-in-out;
}

 

Link to comment

Thank you for your continued help. It does not seem to make any change 😞

 

// LOGO //

.header-title-logo a {
  transition: background-image 1s ease-out;
}

.header-title-logo a:hover img {
    visibility: hidden;
}
.header-title-logo a:hover {
    background-image: url(https://static1.squarespace.com/static/5e3323ee22d30704f3fe0f1e/t/5e6a37a3bb6219675f5639ba/1584019363322/nopi+logo+color.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
  -webkit-transition: background-image 1s ease-out;
transition: background-image 1s ease-out;
}

 

Link to comment
On 3/16/2020 at 12:16 AM, amandaNOPI said:

Thank you for your continued help. It does not seem to make any change 😞

 

 

.header-title-logo img {
    transition: all 0.75 ease-in-out;
}
.header-title-logo a:hover {
    transition: all 0.75s ease-in-out;
}

 

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

Archived

This topic is now archived and is closed to further replies.

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