Scroll function in SCA

On clicking a button or text we can scroll the page using jQuery

jQuery('body').animate({
        scrollTop: jQuery('body .global-views-message-error:first').offset().top
}, 600);

Leave a comment

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