CSS 基本动画属性

被刻印的时光 ゝ 提交于 2020-03-02 11:09:39

animation:

当网页加载时,自动触发动画。调用@keyframes关键帧。

animation属性使用方法:

animation:关键帧的名称 动画的持续的时间 动画运用的类型 动画的延迟 动画运动的次数 动画运动的次数;

animation-name 关键帧名称

animation-duration 动画持续的时间

animation-timing-function 动画运用的类型(匀速linear、加速度、减速度、贝塞尔曲线)

animation-delay 动画延迟的时间

animation-iteration-count 动画运动的次数(默认情况下运动1次) infinite(无限循环)

animation-direction 动画运动的方向

animation-play-state 暂停/运动

@keyframes

@keyframes 关键帧名称 {
0%{ }
25%{ }
50%{ }
75%{ }
100%{ }
}

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!