Question

How can I set slow speed in a JQuery UI toggle effect?

I'm using "drop" effect:

$( "#articleleftmenu" ).toggle( "drop" );

How can I slow toggle("drop") ?

I think that is something like this: $( "#articleleftmenu" ).toggle( "drop", { "slow" } );

Thanks in advance!

Était-ce utile?

La solution

Please read documentation more carefully.

$( "#articleleftmenu" ).toggle("drop", 1000);

http://jsfiddle.net/5RWzE/

Autres conseils

Try this toggle(2000,'easing-function');

you have to pass the object with spefic config llike this :

$( "#articleleftmenu" ).toggle( {effect:"drop",duration :"slow"} );
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top