然后又遇到了类似这样的
animation : 3s ease-in-out 0s normal none infinite superman;
虽然经常看到类似
ease-in-out这样的定义,但是,用到的比较有限也没有深入理解,但是专门做动效的还是需要理解。
可以参照着个描述来取所需的值
he animation-timing-function property can have the following values:
ease
- specifies an animation with a slow start, then fast, then end slowly (this is default)linear
- specifies an animation with the same speed from start to endease-in
- specifies an animation with a slow startease-out
- specifies an animation with a slow endease-in-out
- specifies an animation with a slow start and endcubic-bezier(n,n,n,n)
- lets you define your own values in a cubic-bezier function
查看效果的网址
对于normal的值
则是由
animation-direction定义的