开发者

jQuery UI Tabs - SlideToggle?

开发者 https://www.devze.com 2022-12-19 11:59 出处:网络
The following code rotates through tabs that I\'ve set and does开发者_Python百科 a nice job of fading in and out, however, I was wondering if it could be tweaked to have the content slide in and out.

The following code rotates through tabs that I've set and does开发者_Python百科 a nice job of fading in and out, however, I was wondering if it could be tweaked to have the content slide in and out.

$("#product_rotator").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 7000);

I tried changing "toggle" to "slideToggle" but that didn't work...

Thanks in advance!


Use the following fx option.

$("#tabs").tabs({
  collapsible: true,
  fx: {
    height: 'show', opacity: 'show'
    }
});


Thanks Vindoh, I also tried the following solution and it worked

$("#product_rotator").tabs({fx:{width: "toggle"}}).tabs("rotate", 7000);
0

精彩评论

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