Add and animates insertion a tab or tabs.
animateInsert(before, tabs)

before | string, id of tab to insert before
tabs | object or array, tab or array of tabs

Returns undefined.

#### Description

This method will first animate inserting of the space before tab with id = before and then will call .insert() to insert the tab and display it. If you have tabs defined in the following way: $('#tabs').w2tabs({ name: 'tabs', active: 'tab1', tabs: [ { id: 'tab1', text: 'Tab 1' }, { id: 'tab2', text: 'Tab 2' }, { id: 'tab3', text: 'Tab 3' }, { id: 'tab4', text: 'Tab 4' } ] }); You can add tabs: w2ui['tabs'].animateInsert('tab3', { id: 'tab5', text: 'Tab 5' });