- animation 基础属性详解
```
- animation 基础使用
```
- 基础使用效果:
animation 多组动画
```
- 多组动画效果:
- animation-timing-function: steps(number)
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <style> .box { width: 3px; height: 200px; background-color: #000; margin: 100px auto; transform-origin: bottom; animation: run 60s infinite steps(60); } @keyframes run { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } </style> </head> <body> <div class="box"></div> </body> </html>
- 指定帧数效果: