I want to add a callback onto this animate function --
$("a#goto-3").click(function() {
$('html, body').animate({
scrollTop: $("#landpoint-3").offset().top}, 1000, 'easeInOutCubic'
);
return false;
});
I can do it onto the scrollTop with this...
$("a#goto-2").click(function() {
$('html, body').animate({
scrollTop: $("#landpoint-2").offset().top}, 1000, 'easeInOutCubic', function() {
document.write('complete');
});
return false;
});
..but having no luck getting it onto the animate function - I know this one should be super straightforward.... thanks in advance..