Skip to content

VigneshwaranDev/Profile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Details

This single page has the sticky navigation bar and also the smooth scrolling to the section.

$('.navbar a').on('click', function (e) {
    if (this.hash !== '') {
        e.preventDefault();

        const hash = this.hash;

        $('html, body').animate({
                scrollTop: $(hash).offset().top,
            },
            800
        );
    }
});

This above mentioned program helps to animate the scroll.

Happy Coding... !

About

Page with Sticky Navigation, Smooth Scroll

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published