Skip to content
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

CSS 中触发硬件加速的属性 #7

Closed
jerryyxu opened this issue Sep 12, 2021 · 1 comment
Closed

CSS 中触发硬件加速的属性 #7

jerryyxu opened this issue Sep 12, 2021 · 1 comment
Labels
CSS CSS 基础 小记 知识点,记得经常看看

Comments

@jerryyxu
Copy link
Owner

  • transform: translation3D()
  • transition: transform/opacity ,过渡过程中新增 layer,结束之后则恢复原来 layer
  • animation 中包含了 transform/opacity 动画,过渡过程中进行硬件加速
  • will-change: transform/opacity
@jerryyxu jerryyxu added CSS CSS 基础 小记 知识点,记得经常看看 labels Sep 12, 2021
@jerryyxu
Copy link
Owner Author

DEMO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CSS CSS 基础 小记 知识点,记得经常看看
Projects
None yet
Development

No branches or pull requests

1 participant