Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS CSS3 Transition Chrome Problem

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #34949
    josueochoa
    Member

    Hi, i got a problem with css3 transition in Chrome, it looks good in FF, it is a litle glitch that happens when i hover the element li, see for yourself:

    http://josueochoa.com/new3/

    Heres my code:


    .nav ul li {
    float:left;
    -moz-transition:all .2s linear;
    -webkit-transition:all .2s linear;
    padding:0 20px;
    }

    .nav ul li a {
    color:#161616;
    font-size:16px;
    height:45px;
    display:block;
    line-height:70px;
    -webkit-transition:all .2s linear;
    -moz-transition:all .2s linear;
    padding:0;
    }

    .nav ul li.current a {
    color:#FFF;
    }

    .nav ul li:hover {
    padding:0;
    }

    .nav ul li:hover a {
    background:#F1F1F1;
    padding:0 20px;
    }

    .nav ul li.current,.nav ul li.current:hover a {
    background:#e00000;
    }

    Thanks

    #89824
    josueochoa
    Member

    the effect that i want to achieve is about deleting the li padding when is hover and adding a padding to the children a at the same time, so its neccesary that both elements get transitioned.

    #89826
    Anonymous
    Inactive

    i think the ‘glitch’ he’s saying is that the nav text slighly moves on hover on chrome, it does not in FF..

    #89827
    josueochoa
    Member

    ^ yes, thats it.

    #89835
    josueochoa
    Member

    yes, it works, but it doesn’t looks good in webkit browsers, you can test it in Firefox and then in Chrome to see the difference.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.