css3实现闪亮进度条效果

 

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)),
		color-stop(45%,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) 55%,
		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,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%);
	background-image: -webkit-gradient(linear, left top, right bottom,
		color-stop(0%,rgba(255,255,255,0.2)),
		color-stop(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,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: -ms-linear-gradient(-45deg,
		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%);
	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%,
			transparent 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%,
			transparent 50%),
		-webkit-linear-gradient(left,
			rgba(255,255,255,0.13) 0%,
			rgba(255,255,255,0.13) 50%,
			transparent 50%),
		-webkit-linear-gradient(left,
			transparent 0%,
			transparent 50%,
			rgba(255,255,255,0.17) 50%),
		-webkit-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)),
			color-stop(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(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.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%,
			transparent 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(left,
			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%,
			transparent 50%),
		-ms-linear-gradient(left,
			transparent 0%,
			transparent 50%,
			rgba(255,255,255,0.17) 50%),
		-ms-linear-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%,
			transparent 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(to 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)),
		color-stop(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%,
		transparent 40%);
	background-image: -webkit-gradient( radial, center center, 0, center center, 60,
		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%,
		transparent 40%);
	background-image: -ms-radial-gradient(center, ellipse cover,
		rgba(255,255,255,.9) 0%,
		rgba(255,255,255,.2) 20%,
		transparent 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 > span{
	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;
}

以上是小编为您精心准备的的内容,在的博客、问答、公众号、人物、课程等栏目也有的相关内容,欢迎继续使用右上角搜索按钮进行搜索px
, rgba
, gradient
, left
, transparent
, 0.1
background-image
css3实现圆环进度条、css3实现倒计时进度条、css3实现圆形进度条、css3实现环形进度条、css3实现进度条,以便于您获取更多的相关知识。

时间: 2024-11-17 20:03:03

css3实现闪亮进度条效果的相关文章

Javascript+CSS3实现进度条效果_javascript技巧

进度条在很多web中都能用的到,本文就是介绍了进度条效果,具体代码如下: 一:css2 属性clip实现网页进度条: 在实现之前,我们先来介绍一下clip属性,因为这个属性在css2.1中很少使用到,所以我们有必要来了解一下: 浏览器支持程度:所有主流浏览器都支持 clip 属性. Clip属性在w3c官网是这样描述的:通过对元素进行裁剪来控制元素的可视区域,默认情况下 元素是不进行任何裁剪的. Clip裁剪的语法如下:  .xx {clip:rect(<top>, <right>

《响应式Web设计:HTML5和CSS3实践指南》——1.8节基于CSS3按钮的进度条

1.8 基于CSS3按钮的进度条 和其他网站一样,你的网站也需要去迎合那些急性子的用户.如果你的网站有一个可提交的表单,访客可能会不耐烦地多次单击"提交"按钮,因为你的页面加载新内容不够快.这可能会导致一个问题,就是表单多次提交同样的数据. 1.8.1 准备工作 为了防止这种行为,可以添加一些简单的视觉提示,告诉用户后台正在处理,请保持耐心.如果效果比较华丽,甚至可以给他们匆忙的生活增添点阳光.这个方法不需要任何图像,只需要使用CSS创建一个漂亮的渐变式提交按钮.本节内容很长,你可以先

使用ReactJS实现tab页切换、菜单栏切换、手风琴切换和进度条效果_javascript技巧

ReactJS是Facebook推出的产品.在2013年的Qcon大会(上海)上面,当时Facebook的前端工程师做过一次讲座,就专门介绍了ReactJS. ReactJS可以看做就是用来Render的.ReactJS是可以达到游戏级别的渲染,fps可以保持在60左右,相当的了不起,它做了一个虚拟dom tree加速了渲染过程,根据当时的数据说比angularjs快20%以上. 前沿 对于React, 去年就有耳闻, 挺不想学的, 前端那么多东西, 学了一个框架又有新框架要学?, 反正内心是拒

js插件YprogressBar实现漂亮的进度条效果

  以下为你介绍js插件YprogressBar实现漂亮的进度条效果:       ProgressBar.js 是一个借助动态 SVG 路径的漂亮的,响应式的进度条效果.使用 ProgressBar.js 可以很容易地创建任意形状的进度条.这个 JavaScript 库提供线条,圆形和方形等几个内置的形状,但你可使用 Illustrator 或任何其它的矢量图形编辑器创建自己的进度条效果. 简介 YprogressBar是一款基于HTML5的进度条插件. YprogressBar是一款轻量级进

PPT制作进度条效果的方法

PPT制作进度条效果的方法   问题分析 用PPT制作进度条,相信难点在于数字的跳动和进度条的同步.教程中假设数字从10到100(间隔为10的倍数),每个数字跳动时间为0.1秒,10个数字时间共1秒,与此同时,把进度条的总出现时间设置为1秒,这样,就能做到数字的总时间和进度条的总时间相同,达到同步的目的--这就是制作PPT进度条的原理. 预备工作 在PPT制作进度条制作前,我们需要先把需要的素材(10个数字和进度条)先准备好. 动画设置 整个动画过程,我们需要把所有动画的[开始],设置为[与上一

jQuery实现进度条效果代码_jquery

在某些特定的场景下,应用进度条效果,可以提高网站的人性化程度,能够让用户能够掌握进度,增加对进度的耐心,否则可能直接导致关闭页面,从来导致网站流失用户,下面就是用过jQuery实现的进度效果代码. <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta nam

《HTML5 开发实例大全》——1.13 使用&lt; progress &gt;标记元素实现进度条效果

1.13 使用< progress >标记元素实现进度条效果 实例说明 在全新HTML 5中,可以使用< progress >标记元素实现进度条效果.当页面在与用户进行数据交互时,为了增强用户的UI体验,通过进度条效果显示在页面中的各种进度状态.< progress >元素是HTML 5中新增的状态交互元素,用来表示页面中的某个任务完成的进度.例如,我们在下载一个文件时,文件下载到本地的进度值,可以通过该元素动态展示在页面中.展示进度的方式既可以使用整数,也可以使用百分

Android开发之模仿微信打开网页的进度条效果(高仿)_Android

一,为什么说是真正的高仿? 阐述这个问题前,先说下之前网上的,各位可以复制这段字,去百度一下  "仿微信打开网页的进度条效果" ,你会看到有很多类似的文章,不过他们有个共同点,就是实现方法都是一样的,而且,都忽略了微信加载网页时,进度条的缓慢动画效果,它不是生硬地一滑而过,而是用户体验很好,有个速度的变化,由慢到快的效果,语言难于描述,相信各位都有下载微信,可以随便打开个公众号的文章看看效果. 好了,上面说到,之前网上的方法都是都忽略了微信加载网页时,进度条的缓慢动画效果,实现代码也是

jQuery实现的进度条效果_jquery

在某些特定的场景下,应用进度条效果,可以提高网站的人性化程度,能够让用户能够掌握进度,增加对进度的耐心,否则可能直接导致关闭页面,从来导致网站流失用户,下面就是用过jQuery实现的进度效果代码. <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <script src="http://libs.baidu.co