开发者

How to implement sliding effect on jQueryUI Tabs

开发者 https://www.devze.com 2023-01-31 19:08 出处:网络
I have jQueryUI tabs set to fade between tabs. But I would like to apply other effects, perhaps sliding. But since I am a newbie to jQuery I cannot seem to get the syntax ri开发者_StackOverflowght.

I have jQueryUI tabs set to fade between tabs. But I would like to apply other effects, perhaps sliding. But since I am a newbie to jQuery I cannot seem to get the syntax ri开发者_StackOverflowght.

This is what works right now:

$( "#tabs" ).tabs({ fx: { opacity: 'toggle', duration:500} });

This however does NOT work:

$( "#tabs" ).tabs({ fx: { slide: 'toggle',duration:500} });

or this:

$( "#tabs" ).tabs({ fx: { slide: 'toggle',direction:'down',duration:500} });

I have also tried slideUp, slideDown, even explode..nothing other than opacity seems to work.


try this one

$("#tabs").tabs({ fx: { height: 'toggle', duration: 1000 } });


Have you tried this?

$("#tabs").tabs({fx:{height: "toggle"}}).tabs("slideDown", 500);
0

精彩评论

暂无评论...
验证码 换一张
取 消