Swop Logo On Mouse Over - Question | JoomShaper
🎃 Halloween Sale is Live! Get 35% OFF on all plans. Sale ends soon! Get Offer

Swop Logo On Mouse Over

D

Doron

General 5 months ago

Hi I would like to swop the logo on the appstream templete, when a user hovers over it, for another svg logo.

0
5 Answers
Atick Eashrak Shuvo
Atick Eashrak Shuvo
Accepted Answer
Support Agent 5 months ago #193234

Hi,

Apologies for the inconvenience. Unfortunately, the Appstream template or any of out other template does not offer a built-in option to swap the logo on hover. However, this can be achieved using custom CSS, though please note that the result may not be as smooth or user-friendly as a native feature.

Thank you for your understanding.

Best regards

0
D
Doron
Accepted Answer
5 months ago #193252

Thats fine please send the code for the custom CSS,

I tried this, but its not working

.logo-image:hover { background-image: url(images/Branding/logo-hover.svg)!important; }

0
Atick Eashrak Shuvo
Atick Eashrak Shuvo
Accepted Answer
Support Agent 5 months ago #193327

Please add the following CSS code to your Template Options -> Custom Code -> Custom CSS

/* Smooth fade-out for the original logo */
.logo-image {
  transition: opacity 0.4s ease-in-out;
}

/* Hide original logo on hover */
.logo:hover .logo-image {
  opacity: 0;
}

/* Base link styling to prepare for background */
.logo a {
  display: inline-block;
  position: relative;
  height: 50px;
  width: 150px; /* adjust to match actual logo dimensions */
  transition: background-image 0.4s ease-in-out, background-size 0.4s ease-in-out;
}

/* Show background logo smoothly on hover */
.logo:hover a {
  background-image: url('2nd_logo_url');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center left;
}
0
D
Doron
Accepted Answer
5 months ago #193407

Hi Atick

Thank you, that worked now do I get them both to be the same size .svg

0
Atick Eashrak Shuvo
Atick Eashrak Shuvo
Accepted Answer
Support Agent 5 months ago #193505

Please set the 2nd logo then share the site url, I will give you modified CSS as per requirement

0