Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does one disable animation in jquery-ui datepicker?

Tags:

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?

like image 542
nano Avatar asked Sep 05 '09 03:09

nano


1 Answers

One way to achieve this (prior to jQuery UI 1.8) is to set the duration option to empty string.

$('.date').datepicker({
    duration: ''
});

UPDATE Dec 6, 2010:

In jQuery UI 1.8+, this is a documented feature of the showAnim option.

$('.date').datepicker({
    showAnim: ''
});
like image 125
Joe Holloway Avatar answered Oct 22 '22 05:10

Joe Holloway