deprecated-flexible-nav icon indicating copy to clipboard operation
deprecated-flexible-nav copied to clipboard

Incorporating Smooth Scrolling

Open Braunson opened this issue 13 years ago • 3 comments

Looking to incorporate my smooth scrolling

    $(function() {
        $('a').bind('click',function(event){
            var $anchor = $(this);

            $('html, body').stop().animate({
                scrollTop: $($anchor.attr('href')).offset().top
            }, 1500,'easeInOutExpo');

            event.preventDefault();
        });
    });

In this script but am not having any luck (may be a handy feature to add! ;-) ) also looking to hide the has tags from displaying in the URL bar..

Suggestions / Ideas?

Braunson avatar Dec 29 '11 06:12 Braunson

Did you mean $('a') instead of $('a,') ?

gre avatar Dec 29 '11 21:12 gre

Thanks, erased something last minutes from it, same problem tho..

Braunson avatar Dec 29 '11 21:12 Braunson

Any ideas gre?

Braunson avatar Dec 30 '11 23:12 Braunson