-1

How to trigger fadeIn fadeOut effect in Jquery tabs on switching from one to another

instanceof me
  • 38,520
  • 3
  • 31
  • 40

1 Answers1

3

You could use activate . It gets triggered when a new tab is activated :)

$(function() {
    $( "#tabs" ).tabs({
        activate: function( event, ui ) {
            ui.newPanel.hide().fadeIn(500);
        }
    });
  });

Here is fiddle to help you

Kiran Ruth R
  • 902
  • 1
  • 11
  • 28