css3-动画steps等属性
2016-11-21 20:28
375 查看
<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title></title> </head> <body> <!--------------------------------------动画属性--------------------------------------> <!--调用*/--> <!--infinite:无限次*--> <!--animation: 动画名称 持续时间 执行次数 是否反向 运动曲线 延迟执行--> <!--animation: move 1s alternate linear 3 ;--> <!--animation: gun 4s;--> <!--/* 定义动画*/--> <!--@keyframes move { from{ transform: translateX(0px) rotate(0deg) ; } to{ transform: translateX(500px) rotate(555deg) ; } }--> <!--/* animation属性详解*/ /* 动画名称*/ animation-name: move; /* 一次动画持续时间 前两属性是必须,且顺序固定*/ animation-duration: 3s; /* 动画执行次数 无数次:infinite*/ animation-iteration-count: 1; /* 动画的方向: normal 正常 , alternate: 反向*/ animation-direction: alternate; /* 动画延迟执行*/ /*animation-delay: 1s;*/ /* 设置动画结束盒子盒子的状态 forwards:保持动画结束后的状态 backwards:保持动画开始前的状态 animation-fill-mode:forwards; /* 运动曲线 linear ease-in-out steps()*/ /*animation-timing-function:ease-in;*/--> <!----------------------------------步长steps------------------------------------------> <!-- step多长时间走了多少步 根据目标值设定--> <!--animation:rot 60s steps(60) infinite;--> </body> </html>
相关文章推荐
- CSS3中的动画,animation、transition和transform属性的运用
- css3 animation动画对应属性解释
- CSS3 动画属性
- CSS3变形和动画:旋转、扭曲、缩放、位移、矩阵 、原点 transform-origin、过渡属性 transition-property、过渡所需时间 transition-duration...
- CSS3 产生动画效果的属性
- CSS3 animation(动画) 属性
- CSS3 动画Animation的8大属性
- CSS3 动画属性
- Css3之高级-7 Css动画(概述、关键帧、动画属性)
- CSS3的 transform属性,怎么才能让他同时执行多个不同动画(属性)效果
- CSS3动画的属性主要分为三类:transform、transition以及animation。
- CSS3 变形、过渡、动画、关联属性浅析
- CSS3动画属性:变形(transform)
- 利用css3属性:transition-duration来做简单的动画
- CSS3动画animation相关属性与关键帧规则keyframes
- CSS3中和动画有关的属性transform、transition 和 animation
- css3动画animation属性大全
- CSS3的动画属性
- css3动画属性--animation(动画)
- css3 animation动画对应属性解释