我有一个最初设置了框阴影的图标。我正在为图标设置动画并缩放它,但我也想在执行操作时去除阴影。我已经这样尝试过:
.loading-icon {
width: 80px;
height: 80px;
animation-name: earth;
animation-timing-function: ease-in-out;
animation-duration: 3s;
}
@keyframes earth {
0% {
transform: scale(1);
}
100% {
transform: scale(1.5) { box-shadow: none; };
}
}
但是,这不起作用,我该怎么办?
在关键帧中,{}
周围不需要额外的box-shadow
。
@keyframes earth {
0% {
transform: scale(1);
}
100% {
transform: scale(1.5);
box-shadow: none;
}
}