我试图在无限动画中将部分填充的圆旋转到其他圆的顶部,但在放大和缩小时,它没有正确地将外部蓝色填充的圆与内部圆对齐。我也尝试使用transform-box: fill-box,但也不起作用。
用于旋转的CSS
@keyframes rotation {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.cls-5 {
transform-origin: center center;
//transform-box:fill-box;
animation: rotation 1.5s infinite linear;
}发布于 2020-07-09 12:04:01
https://stackoverflow.com/questions/54592949
复制相似问题