views:

755

answers:

2

I'm generally averse to animation effects given the overheads of reflow on the client side browser.

jquery-ui is an awesome widget. It has all the stuff I need. But is there a way to disable the animation -- in other words the widget just appears instead of sliding out or fading in?

+18  A: 

One way to achieve this is to set the 'duration' option to empty string.

  $('.date').datepicker ({
      duration: ''
  });
Joe Holloway
+1  A: 

Hi,

Currently jquery datepicker plugin doesn't have any parameter to avoid animations.

yoda
This is not true.
cdmckay
Then, how do you disable it? jholloway7's response is a workaround, not a real sollution ..
yoda
@yoda It depends how you interpret the API docs to which I linked. I interpret "speed at which the datepicker appears ... immediately" to mean "no animation". However, I admit a more explicit API would be a welcome addition.
Joe Holloway
yes, but technically it loads the animation function, just doesn't graphically shows the animation due to the nature of the parameter passed .. Unless I am wrong
yoda