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

[注解] [306] 简单的饼图 #86

Open
cssmagic opened this issue May 9, 2018 · 0 comments
Open

[注解] [306] 简单的饼图 #86

cssmagic opened this issue May 9, 2018 · 0 comments
Labels

Comments

@cssmagic
Copy link
Owner

cssmagic commented May 9, 2018

交流与答疑

微信用户 天下第二 提问:

我发现单个标签画饼图有一个问题,就是 100% 的状态没法显示。

这篇博客 用了书上的代码,如果把最下面那个图改成 animation-delay:-100s,本来希望是整个饼图显示 #655 颜色,但是实际上恢复了初始状态的绿色。

临时回复如下:

我暂时没有去深入分析原因。在不改变动画代码的前提下,最简单的变通解决办法是把 -100s 写成 -99.999s

如果你是用脚本来写入元素的 .style.animationDelay 的话,在写入之前减去 0.001 即可;或者判断一下,当发现写入值为 100 时,改为 99.999 再写入。

@cssmagic cssmagic added the 注解 label May 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant