哪个CSS属性用于反向运行动画?
使用animation-direction属性可以反向运行动画。该属性与反向动画值一起使用可实现此目的。
示例
<!DOCTYPE html>
<html>
<head>
<style>
div {
width: 150px;
height: 200px;
background-color: yellow;
animation-name: myanim;
animation-duration: 2s;
animation-direction: reverse;
}
@keyframes myanim {
from {
background-color: green;
}
to {
background-color: blue;
}
}
</style>
</head>
<body>
<div></div>
</body>
</html>热门推荐
10 毕业英语祝福语大全简短
11 年底老板祝福语简短的
12 朋友祝福语两字简短
13 租房明天搬家祝福语简短
14 猪年幽默祝福语简短
15 圣诞简短祝福语给父母
16 要过年了祝福语简短
17 入学校简短祝福语
18 开业祝福语简短大气的