hi as i am new to this jquery could any one help me with this i would like to show the div and hide the dive after trasnsition here is the script
jQuery(function($) {
$('a.panel').click(function() {
var $target = $($(this).attr('href')),
$other = $target.siblings('.active'),
animIn = function () {
$target.addClass('active').show().css({
left: -($target.width())
}).animate({
left: 0
}, 300);
};
if (!$target.hasClass('active') && $other.length > 0) {
$other.each(function(index, self) {
var $this = $(this);
$this.removeClass('active').animate({
left: -$this.width()
}, 300, animIn);
});
} else if (!$target.hasClass('active')) {
animIn();
}
});
});