I want to have a jquery div slide down on a click of a anchor tag, which is working but I want it to animate first and then visit the clicked link. Is this 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;
});
});