站長資訊網(wǎng)
        最全最豐富的資訊網(wǎng)站

        css3動(dòng)畫有哪些屬性

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

        css3動(dòng)畫有哪些屬性

        本教程操作環(huán)境:windows7系統(tǒng)、CSS3&&HTML5版、Dell G3電腦。

        css3動(dòng)畫屬性:

        • @keyframes 規(guī)定動(dòng)畫。

        • animation 所有動(dòng)畫屬性的簡寫屬性,除了 animation-play-state 屬性。

        • animation-name 規(guī)定 @keyframes 動(dòng)畫的名稱。

        • animation-duration 規(guī)定動(dòng)畫完成一個(gè)周期所花費(fèi)的秒或毫秒。默認(rèn)是 0。

        • animation-timing-function 規(guī)定動(dòng)畫的速度曲線。默認(rèn)是 "ease"。

        • animation-delay 規(guī)定動(dòng)畫何時(shí)開始。默認(rèn)是 0。

        • animation-iteration-count 規(guī)定動(dòng)畫被播放的次數(shù)。默認(rèn)是 1。

        • animation-direction 規(guī)定動(dòng)畫是否在下一周期逆向地播放。默認(rèn)是 "normal"。

        • animation-play-state 規(guī)定動(dòng)畫是否正在運(yùn)行或暫停。默認(rèn)是 "running"。

        • animation-fill-mode 規(guī)定對象動(dòng)畫時(shí)間之外的狀態(tài)。

        示例:使用css3動(dòng)畫屬性制作簡單動(dòng)畫

        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、運(yùn)行效果

        css3動(dòng)畫有哪些屬性

        (學(xué)習(xí)視頻分享:css視頻教程)

        贊(0)
        分享到: 更多 (0)
        網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)
        主站蜘蛛池模板: 精品一区二区久久久久久久网站| 国产精品男男视频一区二区三区| 国产亚洲精品国产| 四虎成人精品国产永久免费无码| 日本一区精品久久久久影院| 无码人妻精品一区二区三区66| 国产精品自产拍在线18禁| 精品九九人人做人人爱| 久久精品中文騷妇女内射| 亚洲精品视频在线观看你懂的| 国产精品美女网站在线观看| 国产精品久久成人影院| 久久99精品久久久久久久不卡| 亚洲精品NV久久久久久久久久| 国产免费久久精品丫丫| 9999国产精品欧美久久久久久| 凹凸69堂国产成人精品视频| 国产精品亚洲精品日韩已满| 少妇精品无码一区二区三区 | 久久国产精品免费一区| 91精品国产自产在线老师啪| 精品精品国产自在久久高清| 国产69精品久久久久777| 国产成人精品无码一区二区| 欧美精品黑人粗大免费| 久久精品aⅴ无码中文字字幕不卡| 久久精品亚洲日本波多野结衣| 蜜芽亚洲av无码精品色午夜| 人妻精品久久无码专区精东影业 | 精品国产成人在线| 免费精品国产自产拍在线观看| 久久精品国产一区二区电影| 日韩精品成人a在线观看| 亚洲欧美日韩久久精品| 无码国产精品一区二区免费vr | 免费精品视频在线| 久久精品?ⅴ无码中文字幕| 精品成人一区二区三区四区| 久久99亚洲综合精品首页| 黄床大片免费30分钟国产精品| 精品国产欧美一区二区三区成人|