Skip to content

jquery OverlayScrollbars element scroll to top #520

Answered by m-derakhshi
m-derakhshi asked this question in Q&A
Discussion options

You must be logged in to vote

please add to readme.md:
example->jquery scroll top with animation :

OverlayScrollbarsGlobal.OverlayScrollbars(document.querySelector('.main-wrapper')).elements().viewport.scrollTo({top: 0, behavior: 'smooth'});

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by m-derakhshi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant