css3-动画steps等属性

<!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>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值