【发布时间】:2021-11-20 11:12:37
【问题描述】:
animation-direction CSS 属性设置动画是应该向前、向后播放还是在向前和向后播放序列之间来回交替播放。是否可以为Android Animation编写满足CSS动画方向的normal,reverse,alternate,alternate-reverse值的代码?
HTML5
/* Single animation */
animation-direction: normal;
animation-direction: reverse;
animation-direction: alternate;
animation-direction: alternate-reverse;
/* Multiple animations */
animation-direction: normal, reverse;
animation-direction: alternate, reverse, normal;
安卓
switch (arg1) {
case "normal":
//Code here
break;
case "reverse":
//Code here
break;
case "alternate":
//Code here
break;
case "alternate-reverse":
//Code here
break;
}
【问题讨论】:
标签: android html css-animations android-animation