站長(zhǎng)資訊網(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)畫屬性的簡(jiǎn)寫屬性,除了 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í)開(kāi)始。默認(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ī)定對(duì)象動(dòng)畫時(shí)間之外的狀態(tài)。

示例:使用css3動(dòng)畫屬性制作簡(jiǎn)單動(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)
久久亚洲精品中文字幕| 国产亚洲福利精品一区二区| 日韩在线一区视频| 国产精品视频第一页| 久久人人超碰精品CAOPOREN| 人妻少妇看A偷人无码精品视频| 中文精品北条麻妃中文| 国产精品美女流白浆视频| 99久热只有精品视频免费看| 婷婷成人国产精品| 国产美女精品久久久久久久免费| 无码国内精品人妻少妇蜜桃视频| 亚洲精品无码成人片在线观看 | 日韩精品免费视频| 久久久久久久精品成人热色戒| 99麻豆久久久国产精品免费| 国产精品三级在线观看| 亚欧人成精品免费观看| 亚洲国产精品无码久久久蜜芽| 精品一区二区三区免费毛片| 伊人久久精品一区二区三区| 久久99精品视香蕉蕉| 日韩精品在线观看| 婷婷成人国产精品| 国产国产成人久久精品杨幂| 国产精品大bbwbbwbbw| 久久久久国产精品熟女影院| 91在线视频精品| 亚洲国产精品综合久久网络| 国产精品一区二区无线| 亚洲精品宾馆在线精品酒店| 久久91亚洲精品中文字幕| 亚洲av日韩av不卡在线观看| 久久亚洲私人国产精品vA| 精品人妻少妇一区二区| 91国在线啪精品一区| 成人区精品人妻一区二区不卡| 亚洲日韩一页精品发布| 国产精品美女一区二区视频| 亚洲日韩精品一区二区三区| 国产精品亚洲综合一区|