我想做兼容safari,但是写上@-webkit-transform没有效果,这段动画代码是用js添加的,前面那个添加动画@-webkit-keyframes,可以兼容safari,但是后面的动画效果不能兼容safari,这该怎么兼容呢?谢谢了
业精于勤,荒于嬉;行成于思,毁于随。
If you write the animation in js and insert it into the dom, it is best to set the animation-play-state attribute of the element:
animation-play-state
{ animation-play-state:running; -webkit-animation-play-state:state:running; }
In addition, when setting animation, you must also add the -webkit- prefix
animation
-webkit-
{ animation: she1 xxx xxx; -webkit-animation: she1 xxx xxx; }
If you write the animation in js and insert it into the dom, it is best to set the
animation-play-state
attribute of the element:In addition, when setting
animation
, you must also add the-webkit-
prefix