Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1252722
    avanaa
    Participant

    Hello
    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!

    #1252724
    avanaa
    Participant
    This reply has been marked as private.
    #1252897
    Rupok
    Member

    Hi 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!

    #1253437
    avanaa
    Participant
    .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?

    #1253823
    Jade
    Moderator

    Hi there,

    Please try adding this code:

    .masthead-stacked .x-brand {
        width: 100px;
        height: 100px;
    }

    Hope this helps.

  • <script> jQuery(function($){ $("#no-reply-1252722 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>