CSS3如何實(shí)現(xiàn)彩色進(jìn)度條動(dòng)畫

這篇文章給大家分享的是有關(guān)CSS3如何實(shí)現(xiàn)彩色進(jìn)度條動(dòng)畫的內(nèi)容。小編覺得挺實(shí)用的,因此分享給大家做個(gè)參考,一起跟隨小編過(guò)來(lái)看看吧。

網(wǎng)站設(shè)計(jì)制作過(guò)程拒絕使用模板建站;使用PHP+MYSQL原生開發(fā)可交付網(wǎng)站源代碼;符合網(wǎng)站優(yōu)化排名的后臺(tái)管理系統(tǒng);成都網(wǎng)站建設(shè)、網(wǎng)站建設(shè)收費(fèi)合理;免費(fèi)進(jìn)行網(wǎng)站備案等企業(yè)網(wǎng)站建設(shè)一條龍服務(wù).我們是一家持續(xù)穩(wěn)定運(yùn)營(yíng)了10余年的成都創(chuàng)新互聯(lián)公司網(wǎng)站建設(shè)公司。

簡(jiǎn)要教程

CSS3如何實(shí)現(xiàn)彩色進(jìn)度條動(dòng)畫

這是一款css3彩色進(jìn)度條動(dòng)畫特效。該CSS3進(jìn)度條動(dòng)畫特效中包含了三種動(dòng)畫特效,它們通過(guò)HMTL代碼和簡(jiǎn)單的CSS3來(lái)實(shí)現(xiàn)彩色進(jìn)度條的不同動(dòng)畫效果。

CSS3如何實(shí)現(xiàn)彩色進(jìn)度條動(dòng)畫

使用方法

HTML結(jié)構(gòu)

<div class="container">    
  <div class="progress progress-striped">
    <div class="progress-bar">
    </div>                       
  </div> 
</div>

<div class="container">    
  <div class="progress2 progress-moved">
    <div class="progress-bar2" >
    </div>                       
  </div> 
</div>

<div class="container">    
  <div class="progress progress-infinite">
    <div class="progress-bar3" >
    </div>                       
  </div> 
</div>

CSS結(jié)構(gòu)

body {
  font-family: 'Montserrat', sans-serif;
  background: #2c303a;
}

.container {
  margin: 100px auto;
  width: 500px;
  text-align: center;
}

.progress {
  padding: 6px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25), 0 1px rgba(255, 255, 255, 0.08);
}

.progress-bar {
  height: 18px;
  background-color: #ee303c;
  border-radius: 4px;
  transition: 0.4s linear;
  transition-property: width, background-color;
}

.progress-striped .progress-bar {
  background-color: #FCBC51;
  width: 100%;
  background-image: linear-gradient(45deg, #fca311 25%, transparent 25%, transparent 50%, #fca311 50%, #fca311 75%, transparent 75%, transparent);
  animation: progressAnimationStrike 6s;
}

@keyframes progressAnimationStrike {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
.progress2 {
  padding: 6px;
  border-radius: 30px;
  background: rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25), 0 1px rgba(255, 255, 255, 0.08);
}

.progress-bar2 {
  height: 18px;
  border-radius: 30px;
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));
  transition: 0.4s linear;
  transition-property: width, background-color;
}

.progress-moved .progress-bar2 {
  width: 85%;
  background-color: #EF476F;
  animation: progressAnimation 6s;
}

@keyframes progressAnimation {
  0% {
    width: 5%;
    background-color: #F9BCCA;
  }
  100% {
    width: 85%;
    background-color: #EF476F;
  }
}
.progress-bar3 {
  height: 18px;
  border-radius: 4px;
  background-image: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #7DC8E8, #5856d6, #ff2d55);
  transition: 0.4s linear;
  transition-property: width, background-color;
}

.progress-infinite .progress-bar3 {
  width: 100%;
  background-image: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #7DC8E8, #5856d6, #ff2d55);
  animation: colorAnimation 1s infinite;
}

@keyframes colorAnimation {
  0% {
    background-image: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #7DC8E8, #5856d6, #ff2d55);
  }
  20% {
    background-image: linear-gradient(to right, #5ac8fa, #007aff, #7DC8E8, #5856d6, #ff2d55, #4cd964);
  }
  40% {
    background-image: linear-gradient(to right, #007aff, #7DC8E8, #5856d6, #ff2d55, #4cd964, #5ac8fa);
  }
  60% {
    background-image: linear-gradient(to right, #7DC8E8, #5856d6, #ff2d55, #4cd964, #5ac8fa, #007aff);
  }
  100% {
    background-image: linear-gradient(to right, #5856d6, #ff2d55, #4cd964, #5ac8fa, #007aff, #7DC8E8);
  }
}

感謝各位的閱讀!關(guān)于“CSS3如何實(shí)現(xiàn)彩色進(jìn)度條動(dòng)畫”這篇文章就分享到這里了,希望以上內(nèi)容可以對(duì)大家有一定的幫助,讓大家可以學(xué)到更多知識(shí),如果覺得文章不錯(cuò),可以把它分享出去讓更多的人看到吧!

分享文章:CSS3如何實(shí)現(xiàn)彩色進(jìn)度條動(dòng)畫
當(dāng)前鏈接:http://m.kartarina.com/article40/pipgho.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供云服務(wù)器、微信公眾號(hào)、網(wǎng)站策劃、網(wǎng)站內(nèi)鏈用戶體驗(yàn)、服務(wù)器托管

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

h5響應(yīng)式網(wǎng)站建設(shè)
主站蜘蛛池模板: 亚洲精品无码久久久| 亚洲人成人无码网www电影首页| 精品久久久久久久无码久中文字幕 | 无码人妻丰满熟妇片毛片| 精品国精品无码自拍自在线| 免费看国产成年无码AV片| 办公室丝袜激情无码播放| 人妻少妇乱子伦无码视频专区| 亚洲AV无码之国产精品| 在线观看免费无码专区| 亚洲AV永久无码天堂影院| 东京热人妻无码一区二区av| 无码av人妻一区二区三区四区| 深夜a级毛片免费无码| 中文无码字慕在线观看| 国产成人A亚洲精V品无码| 亚洲国产成人无码AV在线| 亚洲AV无码国产精品色午友在线| 国产精品亚洲专区无码WEB| 少妇人妻无码专区视频| 亚洲高清无码专区视频| 久久久久久99av无码免费网站| 久久精品成人无码观看56| 免费无码又爽又刺激网站直播| 亚洲精品无码国产片| 久久亚洲精品成人av无码网站| 永久免费av无码入口国语片| 免费无码又爽又刺激高潮的视频| 日韩免费无码视频一区二区三区| 久久久久亚洲AV无码专区网站| 人妻丰满熟AV无码区HD| 久久久久久无码Av成人影院| 午夜不卡无码中文字幕影院| 国产乱子伦精品无码码专区| 久久精品无码一区二区三区日韩| 亚洲精品9999久久久久无码 | 久久亚洲精品成人av无码网站| 亚洲av中文无码乱人伦在线咪咕| 精品无码国产自产拍在线观看蜜 | 亚洲日韩乱码中文无码蜜桃臀网站| 蜜臀AV无码一区二区三区|