-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
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
Scroll animation for n-anchor #2151
Comments
@07akioni 这个功能是不是可以跟 back top 一起加上 |
这个应该会很繁琐,因为浏览器默认的 smooth 滚动是没有成功的回调的,你需要在中间停止监听这些 |
相比于这个,我觉得当 item 太多导致 anchor 溢出时候内部的滚动更重要 |
可以用 requestAnimationFrame 自己写个滚动,以此来调控滚动的时长以及动画函数 |
当然是可以的,我觉得可以加 |
想了想好像不用自己写,我也忘了为啥默认没用 smooth 了,或许是可以的 |
|
优先原生吧 |
确实 |
This function solves the problem (这个功能解决的问题)
User experience improvement
Expected API (期望的 API)
As the title implies
The text was updated successfully, but these errors were encountered: