CSS3實(shí)現(xiàn)彩色進(jìn)度條動(dòng)畫(huà)的示例
簡(jiǎn)要教程

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

使用方法
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);
}
}
以上就是CSS3實(shí)現(xiàn)彩色進(jìn)度條動(dòng)畫(huà)的示例的詳細(xì)內(nèi)容,更多關(guān)于CSS3 彩色進(jìn)度條的資料請(qǐng)關(guān)注腳本之家其它相關(guān)文章!
相關(guān)文章

CSS3實(shí)現(xiàn)漸變的loading加載進(jìn)度條特效代碼
css3 keyframes制作創(chuàng)意有趣的進(jìn)度條漸變加載動(dòng)畫(huà),loading進(jìn)度條動(dòng)畫(huà)特效,非常不錯(cuò),喜歡的朋友快來(lái)下載吧2020-10-21
jQuery+CSS3實(shí)現(xiàn)的雙層圓環(huán)形進(jìn)度條加載動(dòng)畫(huà)特效
是一段基于jQuery+CSS3實(shí)現(xiàn)的雙層圓環(huán)形狀進(jìn)度條加載動(dòng)畫(huà)特效,雙層圓環(huán)中心還包含著數(shù)字百分比顯示,非常不錯(cuò),適應(yīng)于所有網(wǎng)頁(yè)使用,歡迎興趣的朋友前來(lái)下載2020-08-17
利用css3實(shí)現(xiàn)進(jìn)度條效果及動(dòng)態(tài)添加百分比
這篇文章主要介紹了利用css3實(shí)現(xiàn)進(jìn)度條效果及動(dòng)態(tài)添加百分比,文中通過(guò)示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來(lái)2020-06-01
純css3實(shí)現(xiàn)的百分比漸變進(jìn)度條加載動(dòng)畫(huà)特效源碼
是一段基于CSS3實(shí)現(xiàn)的背景屬性繪制漸變的進(jìn)度條加載動(dòng)畫(huà)特效,自帶有百分比加載動(dòng)畫(huà)效果,非常有意思,歡迎有興趣的朋友前來(lái)下載使用2019-10-09
CSS3+SVG實(shí)現(xiàn)S形進(jìn)度條加載動(dòng)畫(huà)效果源碼
這是一款基于CSS3+SVG實(shí)現(xiàn)S形進(jìn)度條加載動(dòng)畫(huà)效果源碼。畫(huà)面中一個(gè)類(lèi)似蛇形管道的S形狀進(jìn)度條呈現(xiàn)出從左上方0%進(jìn)度加載過(guò)渡到100%的進(jìn)度。并如此循環(huán)往復(fù)2018-07-09
使用CSS3實(shí)現(xiàn)環(huán)形進(jìn)度條效果
這篇文章主要介紹了使用CSS3實(shí)現(xiàn)環(huán)形進(jìn)度條效果,需要的朋友可以參考下2018-06-01
基于jQuery+css3實(shí)現(xiàn)下載按鈕進(jìn)度條特效源碼
jQuery基于css3屬性制作紅色的簡(jiǎn)易的下載按鈕,用戶(hù)點(diǎn)擊download切換顯示進(jìn)度條加載動(dòng)畫(huà),下載完成提示效果。有需要的朋友可以直接下載使用2018-04-04
css3 clip實(shí)現(xiàn)圓環(huán)進(jìn)度條的示例代碼
這篇文章主要介紹了css3 clip實(shí)現(xiàn)圓環(huán)進(jìn)度條的示例代碼的相關(guān)資料,小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,也給大家做個(gè)參考。一起跟隨小編過(guò)來(lái)看看吧2018-02-07
css 進(jìn)度條的文字根據(jù)進(jìn)度漸變的示例代碼
這篇文章主要介紹了css 進(jìn)度條的文字根據(jù)進(jìn)度漸變的示例代碼,介紹了進(jìn)度條里面的文字需要根據(jù)進(jìn)度的長(zhǎng)度而變化,小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,也給大家做個(gè)參考。一2018-01-09
純CSS3 Bootstrap進(jìn)度條動(dòng)畫(huà)樣式特效
這是一個(gè)基于Bootstrap的純CSS3進(jìn)度條動(dòng)畫(huà)樣式特效。具有陰影立體效果, 通過(guò)animation來(lái)制作,歡迎下載2017-10-23











