Horje
smooth scroll on anchor tag Code Example
smooth scroll on anchor tag
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
    anchor.addEventListener('click', function (e) {
        e.preventDefault();

        document.querySelector(this.getAttribute('href')).scrollIntoView({
            behavior: 'smooth'
        });
    });
});




Whatever

Related
Import "requests" could not be resolved from source Code Example Import "requests" could not be resolved from source Code Example
optimization formulas latex Code Example optimization formulas latex Code Example
cannot format given object as a date android Code Example cannot format given object as a date android Code Example
stop an app from autostart mac Code Example stop an app from autostart mac Code Example
button onclick disable after submit Code Example button onclick disable after submit Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7