- This topic is empty.
-
AuthorPosts
-
November 8, 2011 at 6:21 pm #35098MatteoMember
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.November 10, 2011 at 9:32 am #90437Paulie_DMemberIs visibility something you can transition?
Isn’t it a binary state (on/off)?
I know you can transition opacity…could that be the issue?
November 10, 2011 at 11:33 am #90453MatteoMemberThanks 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
November 10, 2011 at 11:43 am #90454Paulie_DMemberThis may help: http://www.greywyvern.com/?post=337
November 14, 2011 at 9:15 am #90596MatteoMemberI’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)
November 16, 2011 at 6:24 am #90714MatteoMemberTry this address: matteovegetti.com
User: guest
pw: guest123Still 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…
November 17, 2011 at 6:25 am #90800MatteoMemberHey 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…
November 21, 2011 at 2:38 pm #91049MatteoMemberI’m almost ashamed to say… no, I don’t.
Same as before, working in Chrome, not in FF.December 5, 2011 at 11:28 am #91914MatteoMemberFinally!
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 -
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.