the project generated by dva uses less to write styles and wants to write an animation, but it doesn"t work. The code is as follows
.box{
width: 100px;
height: 100px;
background-color: red;
transform: translateX(100px);
}
:global{
.over{
animation:mymove 5s infinite;
}
@keyframes mymove {
from { transform: translateX(0px) }
to { transform: translateX(200px) }
}
}
dom
<div className={cx(l.box, "over")}> </div>
there is supposed to be animation when it should be initialized, but why doesn"t it work? I don"t know what"s wrong?