Footer Slide nach unten

$(‘.sitemapTrigger’).click(function(a){
a.preventDefault();
if($(this).hasClass(‘collapse’)){
$(‘html, body’).animate({scrollTop:$(document).height() – 225 – $(window).height()}, 750, function() {
// Animation complete.
$(‘.sitemapTrigger’).removeClass(‘collapse’);
$(‘#sitemap’).hide();
});
//$(‘#sitemap’).hide();
} else {
$(this).addClass(‘collapse’);
$(‘#sitemap’).slideToggle(750);
$(‘html, body’).animate({scrollTop:$(document).height()}, 2000);
}

});

Leave a Reply

Your email address will not be published. Required fields are marked *


2 + = six

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>