• <ul id="mayc0"></ul>
    <ul id="mayc0"><center id="mayc0"></center></ul>
    <strike id="mayc0"><input id="mayc0"></input></strike>
    <ul id="mayc0"></ul>
  • 億恩科技有限公司旗下門戶資訊平臺!
    服務器租用 4元建網站

    CSS3 animation 簡寫屬性的語法和用法

    animation 屬性是一個簡寫屬性,主要用于設置動畫屬性,下面就給大家講解一下animation屬性的語法和用法實例。

    animation 屬性是一個簡寫屬性,主要用于設置動畫屬性,下面就給大家講解一下animation屬性的語法和用法實例。

    定義和用法:

    animation 屬性是一個簡寫屬性,用于設置六個動畫屬性:

    animation-name

    animation-duration

    animation-timing-function

    animation-delay

    animation-iteration-count

    animation-direction

    注釋:請始終規定 animation-duration 屬性,否則時長為 0,就不會播放動畫了。

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

    語法:

    animation: name duration timing-function delay iteration-count direction;


    描述
    animation-name
    規定需要綁定到選擇器的 keyframe 名稱。
    animation-duration
    規定完成動畫所花費的時間,以秒或毫秒計。
    animation-timing-function
    規定動畫的速度曲線。
    animation-delay
    規定在動畫開始之前的延遲。
    animation-iteration-count
     規定動畫應該播放的次數。
    animation-direction
    規定是否應該輪流反向播放動畫。

    應用實例:

    使用簡寫屬性,將動畫與 div 元素綁定: 

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

    瀏覽器支持:

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

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

    注釋:Internet Explorer 9 以及更早的版本不支持 animation 屬性。

    河南億恩科技股份有限公司(www.vbseamall.com)始創于2000年,專注服務器托管租用,是國家工信部認定的綜合電信服務運營商。億恩為近五十萬的用戶提供服務器托管、服務器租用、機柜租用、云服務器、網站建設、網站托管等網絡基礎服務,另有網總管、名片俠網絡推廣服務,使得客戶不斷的獲得更大的收益。
    服務器/云主機 24小時售后服務電話:0371-60135900
    虛擬主機/智能建站 24小時售后服務電話:0371-55621053
    網絡版權侵權舉報電話:0371-60135995
    服務熱線:0371-60135900

    2
    1
    分享到:責任編輯:黃利敏

    相關推介

    共有:0條評論網友評論:

    驗證碼 看不清換一張 換一張

    親,還沒評論呢!速度搶沙發吧!