views:

126

answers:

1

I'm using jQuery ui tabs with the following code but am having trouble adding easing or changing the speed of the effect:

$('#tabs-mcr > ul').tabs({ fx: { opacity: 'toggle' } });

standard opacity toggle but I'd like to either speed up the fade effect or add custom easing to it.

A: 
$('#tabs-mcr > ul').tabs({ fx: { opacity: 'toggle', duration: "fast" } });

or if you want a certain amount of milliseconds:

// half a second
$('#tabs-mcr > ul').tabs({ fx: { opacity: 'toggle', duration: 500 } });
MvanGeest
that's done the trick, thanks. If anyone has a solution for adding easing with the jQuery easing plugin that would be cool.
Jonny Wood
nevermind this seems to work:$('#tabs-mcr > ul').tabs({ fx: { opacity: 'toggle', duration: 'fast', easing: 'easeInOutCubic' } });
Jonny Wood
If the solution works, can you mark it as accepted? That helps the system, other users, and me.
MvanGeest
I did try to mark accepted - but it told me I had to wait 4 minutes. Anyway, done now!
Jonny Wood
Sorry. There is indeed a 15 minute restriction. I didn't want to be obtrusive, I was just wondering if the solution was OK enough. Thanks!
MvanGeest