문제

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!

도움이 되었습니까?

해결책

Please read documentation more carefully.

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

http://jsfiddle.net/5RWzE/

다른 팁

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

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

$( "#articleleftmenu" ).toggle( {effect:"drop",duration :"slow"} );
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top