Customised scrolling

The default scrolling functionality might be working incorrectly for some cases, for that cases, we can use the scroll to function also we can set specified PX and behaviour for the same

            _.defer(function() {
                setTimeout(function() {
                    jQuery(".class").click(function() {
                        jQuery('.class').trigger("click");
                        window.scrollTo({
                            top: 850,
                            behavior: 'smooth',
                        });
                    });
                }, 800)
            })

Leave a comment

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