SlideDown div with anchor click then go to link

I want the jquery div to slide down on click of the anchor tag, which works, but I want it to animate first and then click on the clicked link. Is it possible?

   $('#portfolio').click(function() {



source to share

1 answer

  var href = $(this).attr('href');
  $('#bodyG').slideUp('fast', function() {
    window.location = href;




All Articles