3 Replies - 5882 Views - Last Post: 12 November 2009 - 02:43 AM

#1 mts   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 09-February 07

Jquery ui tabs effects - help needed

Posted 11 November 2009 - 05:21 AM

Hello.
I need a little bit of help in changing the way some tabs are being displayed. Any help is highly appreciated.
So, i have some basic jquery tabs ( http://jqueryui.com/demos/tabs/ ) which are being switched between them using 2 effects: slide up/down and fade in/out:
$(document).ready(function(){   
	 $('#MainTabs').tabs({ fx: { height: 'toggle', opacity: 'toggle'  } });	 
	 $("#MainTabs").tabs(); 	   
});



Instead of tab 1 sliding all the way up and then down, displaying the 2nd tab, i want tab 1 to increase or decrease (as needed) to the size of tab 2.

For example:
Tab1=200px, Tab2=400px

Instead:
Tab1 200px > decreases > 0px > increases > 400px Tab2

I want:
Tab1 200px > increases > 400px Tab2

Hope i've made some sense trying to explain this..

Thank you.
:)

Is This A Good Question/Topic? 0
  • +

Replies To: Jquery ui tabs effects - help needed

#2 girasquid   User is offline

  • Barbarbar
  • member icon

Reputation: 109
  • View blog
  • Posts: 1,825
  • Joined: 03-October 06

Re: Jquery ui tabs effects - help needed

Posted 11 November 2009 - 10:38 AM

I'm not sure whether you can do this or not, but if you can it's probably using the Animate command.
Was This Post Helpful? 1
  • +
  • -

#3 sam_benne   User is offline

  • D.I.C Addict
  • member icon

Reputation: 16
  • View blog
  • Posts: 733
  • Joined: 16-January 08

Re: Jquery ui tabs effects - help needed

Posted 12 November 2009 - 02:34 AM

Look at www.jtutorials.co.cc we have a tutrial on how to make your own tabs. It is easier to create your own than to use the UI.
Was This Post Helpful? 0
  • +
  • -

#4 mts   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 09-February 07

Re: Jquery ui tabs effects - help needed

Posted 12 November 2009 - 02:43 AM

Yes, it seems that it can be done using Animate, indeed.
Thanks for the help. :D
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1