博客计划页源码

August 29, 2016 • Read: 4259 • 杂的文

计划能利事与笃行,故本博客加之,网友思其用,故分享与众。

[-]html

<div class="progress_bar">
<div class="pro-bar">
<small class="progress_bar_title">
洪荒之力使用值
<span class="progress_number">99-99-99 100%</span>
</small>
<span class="progress-bar-inner" style="background-color: rgba(32, 132, 118, 0.68); width: 100%;" data-value="100" data-percentage-value="100"></span>
</div>
</div>

效果预览:

洪荒之力使用值 89.9%

[-]CSS

.progress_bar .pro-bar {
background: hsl(0, 0%, 97%);
box-shadow: 0 1px 2px hsla(0, 0%, 0%, 0.1) inset;
height:4px;
margin-bottom: 12px;
margin-top: 50px;
position: relative;
}
.progress_bar .progress_bar_title{
color: #D5D6E2;
font-size: 15px;
font-weight: 300;
position: relative;
top: -34px;
z-index: 1;
}
.progress_bar .progress_number{
float: right;
margin-top: -34px;
}
.progress_bar .progress-bar-inner {
background-color: hsl(0, 0%, 88%);
display: block;
width: 0;
height: 100%;
position: absolute;
top: 0;
left: 0;
transition: width 1s linear 0s;
animation: animate-positive 2s;
}
.progress_bar .progress-bar-inner:before {
content: "";
background-color: hsl(0, 0%, 100%);
border-radius: 50%;
width: 4px;
height: 4px;
position: absolute;
right: 1px;
top: 0;
z-index: 1;
}
.progress_bar .progress-bar-inner:after {
content: "";
width: 14px;
height: 14px;
background-color: inherit;
border-radius: 50%;
position: absolute;
right: -4px;
top: -5px;
}
@-webkit-keyframes animate-positive{
0% { width: 0%; }
}
@keyframes animate-positive{
0% { width: 0%; }
}
Archives QR Code Tip
QR Code for this page
Tipping QR Code
Leave a Comment

已有 6 条评论
  1. 已用,非常漂亮啊。

    可以搞成标签最好。就像友情链接页面模版@(滑稽)

    1. leo leo

      @True@(滑稽)可以自己动手改一下。

    2. @leo只会复制粘贴@(笑眼)

  2. 我曹,大佬网站666
    游淘气到此一游
    地址:http://www.youtaoqi.com/

    1. 路途 路途

      @三秋@(呵呵)