Forums

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

Home Forums CSS Transition working in webkit not in mozilla

  • This topic is empty.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #35098
    Matteo
    Member

    Hello, I have this code for a drop-down menu, with a transition on the sub-menu:



    ul.menu ul {
    -moz-transition: visibility 0s linear .55s, opacity .55s linear 0s;
    -webkit-transition: visibility 0s linear .55s, opacity .55s linear 0s;
    -o-transition: visibility 0s linear .55s, opacity .55s linear 0s;
    transition: visibility 0s linear .55s, opacity .55s linear 0s;
    visibility: hidden;
    opacity: 0;}

    ul.menu li:hover > ul {
    -moz-transition-delay:0s;
    -o-transition-delay:0s;
    -webkit-transition-delay:0s;
    transition-delay:0s;
    visibility: visible;
    opacity: 1; }

    It displays properly in Chrome but not in Firefox (7.0.1): why?
    Another transition changing background-color on another elemet works fine and a similar transition (http://www.greywyvern.com/?post=337 credit for the idea!) works as well in FF.

    #90437
    Paulie_D
    Member

    Is visibility something you can transition?

    Isn’t it a binary state (on/off)?

    I know you can transition opacity…could that be the issue?

    #90453
    Matteo
    Member

    Thanks for your replies, tried the 550ms before but didn’t work, and yes you can transition visibilty (as per the link I’ve posted, furthermore the transition works in webkit browsers…).
    I’m a bit lost.

    M

    #90454
    Paulie_D
    Member
    #90596
    Matteo
    Member

    I’m using 7.0.1 for Ubuntu: I think this version still uses the prefixed version but I’m not 100% sure (although I’ve tried both versions and none seems to work)

    #90714
    Matteo
    Member

    Try this address: matteovegetti.com
    User: guest
    pw: guest123

    Still work in progress, many things are misplaced and on the menu itself there is an offset I must correct.

    The animation works fine in Chrome though…

    #90800
    Matteo
    Member

    Hey Cliff,

    I really appreciate your efforts but it is not working on my site… yes the jsfiddle works fine but even implementing your code my menu sadly does not…

    #91049
    Matteo
    Member

    I’m almost ashamed to say… no, I don’t.
    Same as before, working in Chrome, not in FF.

    #91914
    Matteo
    Member

    Finally!
    By removing the first pseudo :hover element to ul.menu li and associating the .hover class (for whatever reason) made it to work! :-)
    Thanks anyway Cliff

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