perf: reduce Progress animation cpu usage (#31128)

close #31124
This commit is contained in:
stygian-desolator 2021-06-25 14:00:18 +08:00 committed by GitHub
parent feba8d62ed
commit af94f3f537
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -189,15 +189,15 @@
@keyframes ~"@{ant-prefix}-progress-active" {
0% {
width: 0;
transform: translateX(-100%) scaleX(0);
opacity: 0.1;
}
20% {
width: 0;
transform: translateX(-100%) scaleX(0);
opacity: 0.5;
}
100% {
width: 100%;
transform: translateX(0) scaleX(1);
opacity: 0;
}
}