动画是进行形状更改和使用元素创建动作的过程.
@keyframes
关键帧将控制CSS3中的中间动画步骤.
左侧动画和减号的关键帧示例;
@keyframes animation { from {background-color: pink;} to {background-color: green;}}div { width: 100px; height: 100px; background-color: red; animation-name: animation; animation-duration: 5s;}
以上示例显示了具有关键帧语法的动画的高度,宽度,颜色,名称和持续时间.
向左移动动画
Tutorials Point
this is an example of moving left animation .
Moving left animation with keyframes
Tutorials Point
This is an example of animation left with an extra keyframe to make text changes.