Tagged: x
-
AuthorPosts
-
November 10, 2016 at 9:47 pm #1252722
avanaaParticipantHello
I use this custom CSS to change logo color on hover:.x-brand:hover img{
content: transparent;
}
.x-brand:hover img{
content: url(http://www.mysite.com/…/logo_hover.png);
}It works but there is a micro glitch on hover (there is a tiny moment where original logo disappears and the hover image appears.
Please help me correct this!
November 10, 2016 at 9:48 pm #1252724
avanaaParticipantThis reply has been marked as private.November 11, 2016 at 1:06 am #1252897
RupokMemberHi there,
Your code doesn’t look correct specially this part :
.x-brand:hover img{ content: transparent; }And I can’t see any difference for the code.
Thanks!
November 11, 2016 at 10:01 am #1253437
avanaaParticipant.x-brand:hover img{ content: transparent; }was just testing to remove the glitch (it didn’t work).
So if I only use this:
.x-brand:hover img{ content: url(http://www.mysite.com/…/logo_hover.png); }I get the glitch first time I hover over the logo. After I hover once, the glitch disappears afterward.
Any way to go around this?
November 11, 2016 at 4:48 pm #1253823
JadeModeratorHi there,
Please try adding this code:
.masthead-stacked .x-brand { width: 100px; height: 100px; }Hope this helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1252722 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
