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

animation-fill-mode的取值说明不是很清楚 #141

Open
chocolatl opened this issue Sep 14, 2017 · 1 comment
Open

animation-fill-mode的取值说明不是很清楚 #141

chocolatl opened this issue Sep 14, 2017 · 1 comment

Comments

@chocolatl
Copy link
Contributor

现在的取值说明是这样的:

forwards: 设置对象状态为动画结束时的状态
backwards: 设置对象状态为动画开始时的状态
both: 设置对象状态为动画结束或开始的状态

我觉得改成这样是不是更好理解些:

forwards:动画结束时将元素设置为动画最后一帧的状态
backwards:当在animation-delay的时间里将元素设置为动画第一帧的状态
both:相当于同时设置了forwards和backwards

不知道我的理解是否有误。

@chocolatl
Copy link
Contributor Author

示例没体现出forwards、backwards、both三者的区别,能否换成类似下面的示例:
https://codepen.io/anon/pen/MEYBgV

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant