站長資訊網
        最全最豐富的資訊網站

        css3動畫有哪些屬性

        css3動畫屬性有:“@keyframes”、animation、animation-name、animation-duration、animation-delay、animation-direction等等。

        css3動畫有哪些屬性

        本教程操作環境:windows7系統、CSS3&&HTML5版、Dell G3電腦。

        css3動畫屬性:

        • @keyframes 規定動畫。

        • animation 所有動畫屬性的簡寫屬性,除了 animation-play-state 屬性。

        • animation-name 規定 @keyframes 動畫的名稱。

        • animation-duration 規定動畫完成一個周期所花費的秒或毫秒。默認是 0。

        • animation-timing-function 規定動畫的速度曲線。默認是 "ease"。

        • animation-delay 規定動畫何時開始。默認是 0。

        • animation-iteration-count 規定動畫被播放的次數。默認是 1。

        • animation-direction 規定動畫是否在下一周期逆向地播放。默認是 "normal"。

        • animation-play-state 規定動畫是否正在運行或暫停。默認是 "running"。

        • animation-fill-mode 規定對象動畫時間之外的狀態。

        示例:使用css3動畫屬性制作簡單動畫

        body {   background-color: #fff;   color: #555;   font-size: 1.1em;   font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; } .container {   margin: 50px auto;   min-width: 320px;   max-width: 500px; }  .element {   margin: 0 auto;   width: 100px;   height: 100px;   background-color: #0099cc;   border-radius: 50%;   position: relative;   top: 0;   -webkit-animation: bounce 2s infinite;   animation: bounce 2s infinite; }  @-webkit-keyframes bounce {   from {     top: 100px;     -webkit-animation-timing-function: ease-out;     animation-timing-function: ease-out;   }   25% {     top: 50px;     -webkit-animation-timing-function: ease-in;     animation-timing-function: ease-in;   }   50% {     top: 150px;     -webkit-animation-timing-function: ease-out;     animation-timing-function: ease-out;   }   75% {     top: 75px;     -webkit-animation-timing-function: ease-in;     animation-timing-function: ease-in;   }   to {     top: 100px;   } }  @keyframes bounce {   from {     top: 100px;     -webkit-animation-timing-function: ease-out;     animation-timing-function: ease-out;   }   25% {     top: 50px;     -webkit-animation-timing-function: ease-in;     animation-timing-function: ease-in;   }   50% {     top: 150px;     -webkit-animation-timing-function: ease-out;     animation-timing-function: ease-out;   }   75% {     top: 75px;     -webkit-animation-timing-function: ease-in;     animation-timing-function: ease-in;   }   to {     top: 100px;   } }

        3、運行效果

        css3動畫有哪些屬性

        (學習視頻分享:css視頻教程)

        贊(0)
        分享到: 更多 (0)
        網站地圖   滬ICP備18035694號-2    滬公網安備31011702889846號
        主站蜘蛛池模板: 久久精品国产99久久香蕉| 久久最新精品国产| 国产这里有精品| 国产精品婷婷午夜在线观看| 97久久精品人人做人人爽| 欧美精品黑人巨大在线播放| 久久久久四虎国产精品| 337P亚洲精品色噜噜| 国产精品99久久久久久www| 国产精品免费看久久久香蕉| 欧美日韩国产中文精品字幕自在自线| 久久精品成人免费观看97| 亚洲午夜精品久久久久久app| 色欲精品国产一区二区三区AV| 97久久国产亚洲精品超碰热| 欧美日韩在线亚洲国产精品| 国产精品美女久久久网AV| 亚洲国产精品尤物yw在线| 成人午夜视频精品一区| 久久香综合精品久久伊人| 国产精品成人观看视频免费| 国产精品爱搞视频网站| 国内精品人妻无码久久久影院| av国内精品久久久久影院| 亚洲精品无码高潮喷水在线| 久久精品国产亚洲AV大全| 精品爆乳一区二区三区无码av| 国产成人精品综合在线观看| 99riav国产精品| 无码日韩精品一区二区免费| 亚洲综合精品香蕉久久网97| 色久综合网精品一区二区| 99久久精品无码一区二区毛片| 精品视频无码一区二区三区 | 少妇精品久久久一区二区三区 | 久久亚洲中文字幕精品一区| 精品一区二区三区免费| 奇米影视7777久久精品| 日本精品一区二区三区在线视频一 | 99久久国产综合精品成人影院| 无码精品黑人一区二区三区|