動畫屬性Animation
定義和用法
animation 屬性是一個簡寫屬性,用于設置六個動畫屬性:
- animation-name
- animation-duration
- animation-timing-function
- animation-delay
- animation-iteration-count
- animation-direction
屬性 | 描述 | CSS |
---|---|---|
@keyframes | 規定動畫 | 3 |
animation | 所有動畫屬性的簡寫屬性除了 animation-play-state 屬性 | 3 |
animation-name | 規定@keyframes動畫的名稱 | 3 |
animation-duration | 規定動畫完成一個周期所花費的秒或毫秒 | 3 |
animation-timing-funcation | 規定動畫的速度曲線 | 3 |
animation-delay | 規定動畫何時開始 | 3 |
animation-iteration-count | 規定動畫播放的次數 | 3 |
animation-direction | 規定動畫在下一周期是否逆向播放 | 3 |
animation-play-state | 規定動畫是否正在運行或暫停 | |
animation-fill-mode | 規定動畫對象時間之外的狀態 | 3 |