2 回答

TA貢獻(xiàn)1802條經(jīng)驗(yàn) 獲得超5個(gè)贊
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Document</title>
<script src="jquery.min.js"></script>
<style>
div{
height: 100px;
width: 100px;
background-color: red;
}
@keyframes animation {
40% {
transform: rotate(120deg);
}
60% {
transform: rotate(120deg);
}
100% {
transform: rotate(240deg);
}
}
.animation {
animation: animation 2s ease;
animation-fill-mode : forwards;/*保持結(jié)束位置*/
}
</style>
</head>
<body>
<div class="animation">
</div>
</body>
</html>
- 2 回答
- 0 關(guān)注
- 1332 瀏覽
添加回答
舉報(bào)