jquery - slideDown a div with anchor click then go to link -


i want have jquery div slide down on click of anchor tag, working want animate first , visit clicked link. possible?

   $('#portfolio').click(function() {         $('#bodyg').slideup('fast');         }); 

$('#portfolio').click(function(e){   e.preventdefault();   var href = $(this).attr('href');   $('#bodyg').slideup('fast', function() {     window.location = href;   }); }); 

Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -