Smooth scrolling without slider

If you want to have smooth scrolling on your website, the best you can do is to install a smooth scrolling plugin or extension, because you can't use our slider's code. It would be more complex, then writing it yourself. If you want to write the code yourself, for example with an element, that has the class name "header", you can scroll to it like this:

jQuery("html, body").animate({
    scrollTop: jQuery('.header').offset().top
}, 400);
so just trigger with the clicking of something:
<div id="scrolltrigger">This triggers the scrolling</div>
<script>
jQuery(document).ready(function(){
    jQuery('#scrolltrigger').click(function(){
        jQuery("html, body").animate({
            scrollTop:
            jQuery('.header').offset().top
        }, 400);
    });
});
</script>