比如就像下面这样的css
.go{ animation:godan 5s;}
@keyframes godan{
from {transform:translateX(400%);}
to {transform:translateX(0%);}
}
我能不能通过js去定义godan的时间是1s,5s或者其他的时间?谢谢。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
人生最曼妙的风景,竟是内心的淡定与从容!