@keyframes:
- @keyframes规则指定了动画代码。
- 该动画是通过从一组CSS样式逐渐改变到另一组CSS样式而产生的。
- 在动画过程中,CSS样式可以被改变。
Two ways to specify the change:
– Use the keywords "from" and "to” to define the starting and ending styles.
– Use 0% and 100% to define the starting and ending styles. Other timestamps in between are also accepted, such as 25% of the full duration.