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

css3動畫有哪些屬性

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

css3動畫有哪些屬性

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

css3動畫屬性:

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

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

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

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

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

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

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

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

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

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

示例:使用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動畫有哪些屬性

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

贊(0)
分享到: 更多 (0)
網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號
国内精品久久久久久久亚洲| 日本一区精品久久久久影院| 国产精品青草久久| 国产中老年妇女精品| 亚洲国产小视频精品久久久三级| 日韩精品无码免费专区午夜 | 国产精品国产三级专区第1集 | 国产在线精品一区二区在线观看| 国产福利电影一区二区三区久久久久成人精品综合 | 精品久久久久久久久久中文字幕| 精品无码国产一区二区三区麻豆| 国产精品久久久久久影院| 精品人妻中文av一区二区三区| 一区二区三区久久精品| 日韩人妻无码一区二区三区| 国产精品萌白酱在线观看| 久久人午夜亚洲精品无码区| 国产亚洲精品影视在线| 99精品无人区乱码在线观看 | 精品72久久久久久久中文字幕| 国产精品美女久久福利网站| 国产精品视频久久| 亚洲精品白浆高清久久久久久| 精品国产一区二区三区在线观看 | 亚洲精品午夜国产VA久久成人 | 国产精品视频一区二区三区无码| 国产999精品2卡3卡4卡| 99视频在线观看精品| 国产综合色产在线精品| 日韩人妻精品一区二区三区视频| 国产精品三级国语在线看| 亚洲国产精品综合久久久| 99国产精品视频久久久久| 99久久亚洲综合精品成人网| 亚洲精品在线观看视频| 国产精品被窝福利一区| japanese乱人伦精品| 国产精品夜色视频一级区 | 国产剧情精品在线观看| 日韩成人在线视屏| 亚洲色无码国产精品网站可下载|