We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, a couple of problems with anchor links.
By using JS provided in the advanced help section
$( 'a[href^="#"]' ).on( 'click', function( event ) { event.preventDefault(); var target = $( this ).attr( 'href' ); $( '[canvas="container"]' ).animate( { scrollTop: target.offset().top, }, 1000 ); } );
Any help around this issue?
The text was updated successfully, but these errors were encountered:
I think the
scrollTop: target.offset().top line should be scrollTop: $(target).offset().top
scrollTop: target.offset().top
scrollTop: $(target).offset().top
That should help you.
Sorry, something went wrong.
Thanks, but it did not change any behaviour. It still jumps to the anchor, no smooth scroll.
(and not the other normal – non slidebar – anchor links does not work at all – I guess that is the biggest issue.)
EDIT: It actually did change the behaviour on non-sidebar anchor links. They work with smooth scrolling.
Thank you.
No branches or pull requests
Hi, a couple of problems with anchor links.
By using JS provided in the advanced help section
Any help around this issue?
The text was updated successfully, but these errors were encountered: