function scrollIt(element) {
    window.scrollTo({
        'behavior': 'smooth',
        'left': 0,
        'top': element.offsetTop
    });
}
// Creates a dynamic scroll to the cicked section
Creates a dynamic scroll to the cicked section
Creates a dynamic scroll to the cicked section
function scrollIt(element) {
    window.scrollTo({
        'behavior': 'smooth',
        'left': 0,
        'top': element.offsetTop
    });
}
function scrollIt ( element ) { window . scrollTo ( { 'behavior' : 'smooth' , 'left' : 0 , 'top' : element . offsetTop } ) ; }
Creates a dynamic scroll to the cicked section
Creates a dynamic scroll to the cicked section