CSS3 to achieve a shiny progress bar effect

Source: Internet
Author: User
Tags relative wrapper

 

STYLE.CSS:. holder{position:relative;
margin-bottom:10px;
	}. content-inner{width:500px;
margin:0 Auto;
	}. Content-inner h3{color: #fff; margin:0
10px;
	}. Content-inner. source.wide{width:1000px;
margin-left:-250px;
	}. Content-inner. source.medium{width:650px;
margin-left:-75px;
	Content-inner. SOURCE span{Position:absolute;
	top:7px;
	right:10px;
	Color: #35BFFF;
	font-size:12px;
Cursor:pointer; Content-inner. SOURCE span:after{content: ' + '; content-inner. SOURCE span.active{color: #666; content-inner.
	SOURCE span.active:after{content: '-'; content-inner. SOURCE pre{color: #ccc;
	Background: #000;
	border:1px solid #333;
	PADDING:7PX 15px; box-shadow:0
0 7px #333;
	Content-inner. SOURCE Pre hr{Border:none;
border-bottom:1px dashed #333;
	}. bar{margin:5px 0 3px;
	BORDER:6PX solid #333;
	Background: #333;
	
	Overflow:hidden;
	border-radius:50px;
	-moz-border-radius:50px;
	-webkit-border-radius:50px;
	box-shadow:1px 1px 1px #777; -moz-box-shadow:1px 1px 1px #777;
-webkit-box-shadow:1px 1px 1px #777;
	}. Bar > span{display:block;
	height:20px;
	
	width:20%;
	border-radius:5px;
	-moz-border-radius:5px;
-webkit-border-radius:5px; }. Gradient > span{box-shadow:0
	5px 5px Rgba (255,255,255,0.6) inset, 0-5px 7px rgba (0, 0, 0, 0.4) inset; -moz-box-shadow:0
	5px 5px Rgba (255,255,255,0.6) inset, 0-5px 7px rgba (0, 0, 0, 0.4) inset; -webkit-box-shadow:0
	5px 5px Rgba (255,255,255,0.6) inset, 0-5px 7px rgba (0, 0, 0, 0.4) inset; Filter:progid:DXImageTransform.Microsoft.gradient (startcolorstr= ' #33ffffff ', endcolorstr= ' #33000000 ',
gradienttype=0); }. Gloss > span{background-image:-moz-linear-gradient (Top, Rgba (255,255,255,0.2) 0, Rgba (255,255,255,0.1) 45
	%, Rgba (0,0,0,0.2) 55%, Rgba (0,0,0,0.1) 100%); Background-image:-webkit-gradient (linear, left top, left bottom, color-stop (0%,rgba)), 255,255,255,0.2 (4 5%,rgba (255,255,255,0.1)), Color-stop (55%,rgba (0,0,0,0.2)), Color-stop (100%, Rgba (0,0,0,0.1)); Background-image:-webkit-linear-gradient (Top, Rgba (255,255,255,0.5) 0, Rgba (255,255,255,0.1) 45%, Rgba (0,0,0,0.
	2) 55%, Rgba (0,0,0,0.1) 100%); Background-image:-o-linear-gradient (Top, Rgba (255,255,255,0.2) 0, Rgba (255,255,255,0.1) 45%, Rgba (0,0,0,0.2) 55
	%, Rgba (0,0,0,0.1) 100%); Background-image:-ms-linear-gradient (Top, Rgba (255,255,255,0.2) 0, Rgba (255,255,255,0.1) 45%, Rgba (0,0,0,0.2) 5
	5%, Rgba (0,0,0,0.1) 100%);  Background-image:linear-gradient (to Bottom, Rgba (255,255,255,0.2) 0, Rgba (255,255,255,0.1) 45%, Rgba (0,0,0,0.2)
55%, Rgba (0,0,0,0.1) 100%);
	}. stripe > span{background-size:30px 30px;
	-moz-background-size:30px 30px;
	-webkit-background-size:30px 30px;
	
	-o-background-size:30px 30px; Background-image:-moz-linear-gradient ( -45deg, Rgba (255,255,255,0.15) 0, Rgba (255,255,255,0.15) 25%, Rgba (255,25 5,255,0) 25%, Rgba (255,255,255,0) 50%, Rgba (255,255,255,0.15) 50%, Rgba (255,255, 255,0.15) 75%, Rgba (255,255,255,0) 75%, Rgba (255,255,255,0) 100%); Background-image:-webkit-gradient (linear, left top, right bottom, color-stop (0%,rgba)), 255,255,255,0.2 ( 25%,rgba (255,255,255,0.2)), Color-stop (25%,rgba (255,255,255,0)), Color-stop (50%,rgba (255,255,255,0)), Color-stop (
		50%,rgba (255,255,255,0.2)), Color-stop (75%,rgba (255,255,255,0.2)), Color-stop (75%,rgba (255,255,255,0)),
	Color-stop (100%,rgba (255,255,255,0))); Background-image:-webkit-linear-gradient ( -45deg, Rgba (255,255,255,0.3) 0, Rgba (255,255,255,0.3) 25%, Rgba (255,255 , 255,0) 25%, Rgba (255,255,255,0) 50%, Rgba (255,255,255,0.3) 50%, Rgba (255,255,255,0.3) 75%, Rgba (255,255,255,0) 75
	%, Rgba (255,255,255,0) 100%); Background-image:-o-linear-gradient ( -45deg, Rgba (255,255,255,0.15) 0, Rgba (255,255,255,0.15) 25%, Rgba (255,255,25 5,0) 25%, Rgba (255,255,255,0) 50%, Rgba (255,255,255,0.15) 50%, Rgba (255,255,255,0.15) 75%, Rgba (255,255,255,0) 75% , Rgba (255,255,255,0) 100%); Background-image:-ms-linear-gradient ( -45deg, Rgba (255,255,255,0.15) 0, Rgba (255,255,255,0.15) 25%, Rgba (255,255,2 55,0) 25%, Rgba (255,255,255,0) 50%, Rgba (255,255,255,0.15) 50%, Rgba (255,255,255,0.15) 75%, Rgba (255,255,255,0) 75
	%, Rgba (255,255,255,0) 100%); Background-image:linear-gradient (135deg, Rgba (255,255,255,0.15) 0, Rgba (255,255,255,0.15) 25%, Rgba (255,255,255,0
		) 25%, Rgba (255,255,255,0) 50%, Rgba (255,255,255,0.15) 50%, Rgba (255,255,255,0.15) 75%, Rgba (255,255,255,0) 75%,
Rgba (255,255,255,0) 100%);
	Pattern > span{background-size:13px, 29px, 37px, 53px; Background-image:-moz-linear-gradient (left, Rgba (255,255,255,0.07) 0, Rgba (255,255,255,0.07) 50%, Transpa Rent 50%),-moz-linear-gradient (left, Rgba (255,255,255,0.13) 0, Rgba (255,255,255,0.13) 50%, Transparent 50% ),-moz-linear-gradient (left, transparent 0, transparent 50%, Rgba (255,255,255,0.17) 50%),-moz-lineaR-gradient (left, transparent 0, transparent 50%, Rgba (255,255,255,0.19) 50%); Background-image:-webkit-linear-gradient (left, Rgba (255,255,255,0.07) 0, Rgba (255,255,255,0.07) 50%, Tran Sparent 50%),-webkit-linear-gradient (left, Rgba (255,255,255,0.13) 0, Rgba (255,255,255,0.13) 50%, Transpare NT 50%),-webkit-linear-gradient (left, transparent 0, transparent 50%, Rgba (255,255,255,0.17) 50%),-WEBK
	It-linear-gradient (left, transparent 0, transparent 50%, Rgba (255,255,255,0.19) 50%); Background-image:-webkit-gradient (linear, left top, right top, color-stop (0%,rgba), 255,255,255,.07 P (50%,rgba (255,255,255,.07)), Color-stop (50%,rgba (255,255,255,0)), Color-stop (50%,rgba (255,255,255,0)),-webkit-  
			Gradient (linear, left top, right top, Color-stop (0%,rgba (255,255,255,.13)), Color-stop (50%,rgba (255,255,255,.13)), Color-stop (50%,rgba (255,255,255,0)), Color-stop (50%,rgba (255,255,255, 0)),-webkit-gradient (linear, left top, right top, Color-stop (0%,rgba (255,255,255,0)), Color-stop (50%,rgba (255 , 255,255,0)), Color-stop (50%,rgba (255,255,255,0.17)), Color-stop (50%,rgba (255,255,255,0.17))),-webkit-gradient (l Inear, left top, right top, Color-stop (0%,rgba (255,255,255,0)), Color-stop (50%,rgba (255,255,255,0)), Color-sto
	P (50%,rgba (255,255,255,0.19)), Color-stop (50%,rgba (255,255,255,0.19))); Background-image:-o-linear-gradient (left, Rgba (255,255,255,0.07) 0, Rgba (255,255,255,0.07) 50%, Transpare
		NT 50%),-o-linear-gradient (left, Rgba (255,255,255,0.13) 0, Rgba (255,255,255,0.13) 50%, transparent 50%), -o-linear-gradient (left, transparent 0, transparent 50%, Rgba (255,255,255,0.17) 50%),-o-linear-gradient (l
	EFT, transparent 0, transparent 50%, Rgba (255,255,255,0.19) 50%); 
	Background-image:-ms-linear-gradient (left, Rgba (255,255,255,0.07) 0, Rgba (255,255,255,0.07) 50%,		Transparent 50%),-ms-linear-gradient (left, Rgba (255,255,255,0.13) 0, Rgba (255,255,255,0.13) 50%, Transpa Rent 50%),-ms-linear-gradient (left, transparent 0, transparent 50%, Rgba (255,255,255,0.17) 50%),-ms-lin
	Ear-gradient (left, transparent 0, transparent 50%, Rgba (255,255,255,0.19) 50%); Background-image:linear-gradient (to right, Rgba (255,255,255,0.07) 0, Rgba (255,255,255,0.07) 50%, Transpar 
		Ent 50%), linear-gradient (to right, Rgba (255,255,255,0.13) 0, Rgba (255,255,255,0.13) 50%, transparent 50%), Linear-gradient (to right, transparent 0, transparent 50%, Rgba (255,255,255,0.17) 50%), Linear-gradient (t
o Right, transparent 0, transparent 50%, Rgba (255,255,255,0.19) 50%);
	Pattern > span > span{display:block;
	height:100%;
	
	width:100%;
	border-radius:5px;
	-moz-border-radius:5px;
	-webkit-border-radius:5px;
	
	background-size:12px; Background-image:-moz-linear-gradieNT (left, Rgba (255,255,255,0.1) 0, Rgba (255,255,255,0.1) 50%, transparent 50%); Background-image:-webkit-gradient (linear, left top, right top, color-stop (0%,rgba), 255,255,255,0.1 (50%
	, Rgba (255,255,255,0.1)), Color-stop (50%,rgba (255,255,255,0))); Background-image:-webkit-linear-gradient (left, Rgba (255,255,255,0.1) 0, Rgba (255,255,255,0.1) 50%, Transparent
	50%); 
	Background-image:-o-linear-gradient (left, Rgba (255,255,255,0.1) 0, Rgba (255,255,255,0.1) 50%, transparent 50%); Background-image:-ms-linear-gradient (left, Rgba (255,255,255,0.1) 0, Rgba (255,255,255,0.1) 50%, transparent 50	
	%); Background-image:linear-gradient (to right, Rgba (255,255,255,0.1) 0, Rgba (255,255,255,0.1) 50%, transparent 50%)
; 
	}. pattern2 > span{background-size:10px 60px;
	background-position:0; Background-image:-moz-radial-gradient (center, ellipse cover, Rgba (255,255,255,.9) 0, Rgba (255,255,255,.2) 20%, tr
Ansparent 40%);	Background-image:-webkit-gradient (Radial, center center, 0, center Center, and Color-stop (0, Rgba (255,255,255,.9)), Color-stop (20%, Rgba (255,255,255,.2)), Color-stop (40%, Rgba (255,255,255,0)), Color-stop (100%, Rgba (255,255,255,0))
	);
		Background-image:-webkit-radial-gradient (center, ellipse cover, Rgba (255,255,255,.9) 0, Rgba (255,255,255,.2) 20%,
	Transparent 40%); Background-image:-o-radial-gradient (center, ellipse cover, Rgba (255,255,255,.9) 0, Rgba (255,255,255,.2) 20%, Tran
	Sparent 40%); Background-image:-ms-radial-gradient (center, ellipse cover, Rgba (255,255,255,.9) 0, Rgba (255,255,255,.2) 20%, tra
	Nsparent 40%);  Background-image:radial-gradient (ellipse at center, Rgba (255,255,255,.9) 0, Rgba (255,255,255,.2) 20%, Transparent	
40%); }. Bar.color0 > span{background-color: #FF9932;}. Bar.color1 > span{background-color: #90EE90; bar.color2 ; span{background-color: #dbf043; Bar.color3 > span{background-color: #4169E1; }. Bar.color4 > span{background-color: #DA70D6;}. Bar.color5 > span{background-color: #000; bar.color6 > SP


an{background-color: #026873;}
	. animate{animation:progress 2s linear infinite;
	-moz-animation:progress 2s linear infinite;
	-webkit-animation:progress 2s linear infinite;
	-ms-animation:progress 2s linear infinite;
-o-animation:progress 2s linear infinite;
  } @-webkit-keyframes Progress {from {background-position:0 0;
  to {background-position: -60px-60px;
  }} @-moz-keyframes Progress {from {background-position:0 0;
  to {background-position: -60px-60px;
  }} @-ms-keyframes Progress {from {background-position:0 0;
  to {background-position: -60px-60px;
  }} @-o-keyframes Progress {from {background-position:0 0;
  to {background-position: -60px-60px;
  }} @keyframes Progress {from {background-position:0 0;
  to {background-position: -60px-60px; }} vendor.css:body{Font-family:cambria, Georgia, serif;
	Line-height:1.6em;
	font-size:100%;
	Background:url (bg.png) 0 0 repeat;
	margin:0;
padding:0;
	Header, section, footer, nav, hgroup{display:block;} a{color: #35BFFF;
	Text-decoration:none;
	Transition:all 1s;
	-moz-transition:all 1s;
	-webkit-transition:all 1s;
	-ms-transition:all 1s;
-o-transition:all 1s;

A:hover, a:active{color: #91DCFF;} img{max-width:100%;} a img{border:none;}
	/* Header/* #header {width:100%;
	Background: #000;
	Background:rgba (0, 0, 0, 0.8);
	Color: #ccc;
	letter-spacing:1px;
	margin-bottom:20px;
	PADDING:3PX 0;
	position:relative; box-shadow:0
	3px 10px #333; -moz-box-shadow:0
	3px 10px #333; -webkit-box-shadow:0
	3px 10px #333;
	top:0;
	left:0;
z-index:99; } #header h1{padding:0
	20px;
	margin:10px 0;
	text-shadow:1px 1px 0 #FFF, 2px 1px 1px #CCC;
Float:left;
	} #backlinks {float:right;
	padding:5px 20px;
	Line-height:1.6em;
	Font-weight:bold;
	font-size:11px; font-family: ' Arial NarroW ', Arial;
	} #backlinks a{text-align:right;
Display:block;
	}/* Footer/#footer {position:relative;
	bottom:0;
	left:0;
	padding-left:20px;
	line-height:25px;
	Color: #888;
	font-size:13px;
	Background:rgb (0, 0, 0);
	Background:rgba (0, 0, 0, 0.8);
	box-shadow:0 -3px 10px #333;
	-moz-box-shadow:0 -3px 10px #333;
	-webkit-box-shadow:0 -3px 10px #333;
z-index:99;

} #footer span{Display:inline-block;}
	/* Content Header */#wrapper {position:relative;
Margin:3em Auto;
	} #wrapper h2{margin:0;
	Color: #0082E0;
	text-shadow:1px 1px 1px #777;
	font-size:33px;
Font-family:arial narrow, Arial, Sans-serif;
	#wrapper H2 span{color: #56B8FF;} #wrapper hgroup h3{font-style:italic;
	Font-weight:normal;
	font-size:18px; text-shadow:0
	1px 0 #fafafa;
	Color: #444;
margin:0;
	}. description{Font-style:italic;
	font-size:15px;
Color: #aaa;
	} #ad-holder{Position:absolute;
	top:-40px;
right:10px;
	#ad-holder div{text-align:right} #ad-holder a{color: #ccc;
	font-size:15px; FoNt-style:italic;
padding-left:10px; }/* Clearfix/* Clearfix {Clear:both}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.