Home >Web Front-end >JS Tutorial >Use jquery animate to create a smooth scrolling effect (can be to the top, to the bottom or a specified place)_jquery
It is indeed convenient to use anchor points to jump on the page, but if you want to increase the effect of the web page, you can use animate in jquery to achieve a scrolling action, and slowly scroll to the position you want to jump to. It will look very classy.
Scroll to top:
Scroll to the specified position:
Complete example source code reference:
Back to top
Product Introduction< /p>
Scroll to the bottom