Google Chrome v8对scrollTo使用什么缓动功能?

问题描述 投票:0回答:1

[Google Chrome v8实现了什么缓动功能

window.scrollTo({ x, y }, { behavior: "smooth" })
javascript google-chrome easing
1个回答
2
投票

[Google Chrome(V8)使用EaseInOut animationdelta-based duration,而不是cubic-bezier timing functionhere是Chrome中的实现,而here是MIT许可的实现),参数化了these arguments。] >

© www.soinside.com 2019 - 2024. All rights reserved.