I am trying to get a spinner to fade in. I am using this progress spinner: JQuery Progress Spinner
It allows one to specify a CSS class to add CSS effects, which I have called spinner.
My CSS for the spinner class is :
.spinner {
-moz-transition: opacity 2s linear;
-o-transition: opacity 2s linear;
-webkit-transition: opacity 2s linear;
transition: opacity 2s linear;
border: 1px solid red;
}
But it does not work. I am using this with Ajax, and if the response is < 1 sec then I do not want the progress spinner, so in this case it will not have faded in. Except it does, so I get the spinner appearing for about 50ms which is not ideal.
I guess there is something, rather trivial, that is incorrect with my CSS.
EDIT 1:
I am transitioning from transparent(white which is my background colour) to the spinner.