css3新动_CSS3 动画

注意(1):

animation-play-state 也是 animation 的简写属性,但在 -webkit- 中不适用:

animation: myfirst 5s infinite linear paused;

即:

animation-name: myfirst;

animation-duration: 5s;

animation-iteration-count: infinite;

animation-timing-function: linear;

animation-play-state: paused;

但, 在 -webkit- 中,-webkit-animation-play-state 却是单独的,不能用 -webkit-animation 包含:

-webkit-animation: myfirst 5s infinite linear paused;

无效!!!!!

必须写为:

-webkit-animation: myfirst 5s infinite linear;

-webkit-animation-play-state: paused;

---------------------------------------

注意(2):

animation 并不太注重语法顺序(除了 【duration / 动画用时】 一定在 【delay / 动画延时】 之前),但在 -webkit-animation (主要针对 "Safari")中,不能以 -webkit-animation-name 来结尾:

animation: myfirst 5s linear 2s infinite alternate;

animation: 5s linear 2s infinite myfirst alternate;

animation: 5s 2s infinite alternate linear myfirst;

// etc... 都是可以的

但在 Safari 中, 以下语句无法运行:【动画名结尾】

-webkit-animation: 5s linear 2s infinite alternate myfirst;

【动画名称】不能作为结尾属性, 以下语句可运行:

-webkit-animation: myfirst 5s linear 2s infinite alternate;

-webkit-animation: 5s linear 2s infinite myfirst alternate;

-webkit-animation: 5s 2s infinite myfirst alternate linear;

Kai

Kai

790***286@163.com5个月前 (07-30)

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值