css (C)Leanest CSS微调器
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了css (C)Leanest CSS微调器相关的知识,希望对你有一定的参考价值。
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
// alert('Hello world!');
<div class="small progress"><div>Loading…</div></div>
<div class="progress"><div>Loading…</div></div>
<div class="large progress"><div>Loading…</div></div>
/**
* (C)Leanest CSS spinner ever
*/
@keyframes spin {
to { transform: rotate(1turn); }
}
.progress {
position: relative;
display: inline-block;
width: 5em;
height: 5em;
margin: 0 .5em;
font-size: 12px;
text-indent: 999em;
overflow: hidden;
animation: spin 1s infinite steps(8);
}
.small.progress {
font-size: 6px;
}
.large.progress {
font-size: 24px;
}
.progress:before,
.progress:after,
.progress > div:before,
.progress > div:after {
content: '';
position: absolute;
top: 0;
left: 2.25em; /* (container width - part width)/2 */
width: .5em;
height: 1.5em;
border-radius: .2em;
background: #eee;
box-shadow: 0 3.5em #eee; /* container height - part height */
transform-origin: 50% 2.5em; /* container height / 2 */
}
.progress:before {
background: #555;
}
.progress:after {
transform: rotate(-45deg);
background: #777;
}
.progress > div:before {
transform: rotate(-90deg);
background: #999;
}
.progress > div:after {
transform: rotate(-135deg);
background: #bbb;
}
以上是关于css (C)Leanest CSS微调器的主要内容,如果未能解决你的问题,请参考以下文章
css (C)Leanest CSS微调器
css CSS / HTML仅加载微调器
css CSS3加载图标/微调器
CSS 通用图像预加载器(微调器)
css3微调器上的抽搐动画
在 asp.net 回发期间触发 javascript(以显示 css 加载器/微调器)