Skip to content

Instantly share code, notes, and snippets.

@AdrianGyuricska
Created June 22, 2011 20:15
Show Gist options
  • Select an option

  • Save AdrianGyuricska/1041037 to your computer and use it in GitHub Desktop.

Select an option

Save AdrianGyuricska/1041037 to your computer and use it in GitHub Desktop.
Slider
$('#selling nav a').click(function(){
var what = $(this).attr('href');
if($(this).hasClass('active') != true){
$(this).addClass('active').parent().siblings().children().removeClass('active');
$('.s-section:visible').animate({
left: '-700px'
}, 500, function() {
$(this).css({'left':'0'}).hide();
});
$(what).css({'left':'700px'}).show().animate({
left: '0px'
}, 500, function() {
$(this).css({'left':'0'});
});
};
return false;
});
$('#selling nav a:first').click();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment