最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

CSS3 animation 屬性

實(shí)例

使用簡(jiǎn)寫(xiě)屬性,將動(dòng)畫(huà)與 div 元素綁定:

div
{
animation:mymove 5s infinite;
-webkit-animation:mymove 5s infinite; /* Safari 和 Chrome */
}

親自試一試

瀏覽器支持

Internet Explorer 10、Firefox 以及 Opera 支持 animation 屬性。

Safari 和 Chrome 支持替代的 -webkit-animation 屬性。

注釋?zhuān)?/span>Internet Explorer 9 以及更早的版本不支持 animation 屬性。

定義和用法

animation 屬性是一個(gè)簡(jiǎn)寫(xiě)屬性,用于設(shè)置六個(gè)動(dòng)畫(huà)屬性:

  • animation-name
  • animation-duration
  • animation-timing-function
  • animation-delay
  • animation-iteration-count
  • animation-direction

注釋?zhuān)?/span>請(qǐng)始終規(guī)定 animation-duration 屬性,否則時(shí)長(zhǎng)為 0,就不會(huì)播放動(dòng)畫(huà)了。

默認(rèn)值: none 0 ease 0 1 normal
繼承性: no
版本: CSS3
JavaScript 語(yǔ)法: object.style.animation="mymove 5s infinite"

語(yǔ)法

animation: name duration timing-function delay iteration-count direction;
描述
animation-name 規(guī)定需要綁定到選擇器的 keyframe 名稱(chēng)。。
animation-duration 規(guī)定完成動(dòng)畫(huà)所花費(fèi)的時(shí)間,以秒或毫秒計(jì)。
animation-timing-function 規(guī)定動(dòng)畫(huà)的速度曲線。
animation-delay 規(guī)定在動(dòng)畫(huà)開(kāi)始之前的延遲。
animation-iteration-count 規(guī)定動(dòng)畫(huà)應(yīng)該播放的次數(shù)。
animation-direction 規(guī)定是否應(yīng)該輪流反向播放動(dòng)畫(huà)。

相關(guān)頁(yè)面

CSS3 教程:CSS3 動(dòng)畫(huà)

九龙县| 晋江市| 甘南县| 灌阳县| 延边| 桐城市| 肥城市| 舒兰市| 凭祥市| 阿拉善左旗| 万安县| 香港| 尼木县| 新巴尔虎左旗| 桂平市| 米脂县| 长宁区| 衡阳县| 芒康县| 新乡市| 桂东县| 长寿区| 大竹县| 长宁县| 古蔺县| 博白县| 新乡市| 天津市| 五寨县| 策勒县| 宁陕县| 桦川县| 昌平区| 哈密市| 钟祥市| 海林市| 外汇| 蒲城县| 钦州市| 宣威市| 修武县|