1

I've posted a simple example here: http://jsfiddle.net/tkJgg/

I know FF needs to have initial values set for the transition properties. I think I have that though. Any ideas what's wrong?

BoltClock
  • 700,868
  • 160
  • 1,392
  • 1,356
user1705507
  • 145
  • 1
  • 2
  • 7

3 Answers3

0

use this

-moz-transition: all 0.5s ease-in-out;

DEMO

Afshin
  • 4,197
  • 3
  • 25
  • 34
  • I see the problem now. It's not the function "ease" it's the delay of 0. FF wants something like "0s" in order to work. The other browsers I tested on didn't care. Thanks. – user1705507 Sep 30 '12 at 07:01
0

remove the 0 at the end :

 -moz-transition: all 0.5s ease;

or specify the s(seconds) after zero :

-moz-transition: all 0.5s ease 0s;

The syntax say :

 <single-transition> = [ none | <single-transition-property> ] || <time> || <single-transition-timing-function> || <time>

where <time> is defined here :

time

The CSS data type denotes time dimensions expressed in seconds or milliseconds. They consists of a <number> immediately followed by the unit.

and moreover :

"While unitless zero is allowed for <length>, it's invalid for all other units."

obe6
  • 1,743
  • 15
  • 23
0

The hover transition doesn't fails in Mozilla but sometimes because of code errors or fail loading the browser disables this property. To ignore this problem you should define the browser in the CSS transition. The following is the example that which code should be used in defining different main browsers

#mydiv a:hover{
   -moz-transition:all 0.5s ease-in-out;     /*For Mozilla Browser*/ 
   -webkit-transition:all 0.5s ease-in-out;  /*For Chrome and Safari*/
   -o-transition:all 0.5s ease-in-out;       /*For Opera Browser*/
    transition:all 0.5s ease-in-out;         /*For Other Browser*/
}