自定义动画

/* 自定义动画
            animation: name duration timing-function delay iteration-count direction fill-mode;
            */
            animation-name: run;/* 动画名称  绑定关键帧动画 */
            animation-duration: 1s;/* 动画执行时间  单位: s  ms   1s=1000ms */
            animation-timing-function: ease;/* 动画运动速度曲线 */
            /* 
                取值:
                    linear  匀速
                    ease  默认值
                    ease-in 以慢速开始
                    ease-out    以慢速结束
                    ease-in-out     以慢速开始和慢速结束
            */
            animation-delay: 1s;/* 动画的延迟时间 */
            /* 
                取值: s ms
                默认值:0
                允许负值  (-1  使动画立马开始, 但是跳过1s直接进入动画)
            */
            animation-iteration-count: 3;/* 规定动画的执行次数 */
            /* 
                取值:
                    n 数字
                    默认值  1
                    infinite  无限次播放动画
            */
            animation-direction: normal;/* 定义动画是否轮流反向播放 */
            /* 
                取值:
                    nomal   默认
                    alternat    动画轮流反向播放
                    alternate-reverse   从第一次就反向播放
            */
            animation-fill-mode: backwards;/* 动画结束之后现实的状态 */
            /* 
                取值:   
                    backwards  动画开始状态
                    both    动画开始或结束的状态
                    forward  动画结束的状态
            */
            animation-play-state:paused ;/* 动画的播放方式        暂停 */
            /* 
                取值:
                    paused      暂停
                    runing      运动
                用在hover里面效果更佳
            */

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值