转自:http://www.cssplay.co.uk/menu/cssplay-loading-animation.html
<div class="loading one"></div>
<div class="loading2 three"></div>
<style>
div.loading {width:200px; height:200px; position:relative; float:left; margin:0 10px;}
div.one {background:#09c;}
div.loading:after {display:block; content:"";
border-radius:2px;
height:2px; width:2px;
position:absolute;
margin:auto; left:0; top:0; right:0; bottom:0;
box-shadow:
10px 0 0 2px #eee,
7px 7px 0 2px #555,
0 10px 0 2px #555,
-7px 7px 0 2px #555,
-10px 0 0 2px #555,
-7px -7px 0 2px #888,
0 -10px 0 2px #ccc,
7px -7px 0 2px #ddd;
-webkit-animation:rotate 0.8s steps(8) infinite;
-o-animation:rotate 0.8s steps(8) infinite;
animation:rotate 0.8s steps(8) infinite;
}
@keyframes rotate {
from {transform: rotate(0deg);}
to {transform: rotate(360deg);}
}
@-webkit-keyframes rotate {
from {-webkit-transform: rotate(0deg);}
to {-webkit-transform: rotate(360deg);}
}
@-o-keyframes rotate {
from {-o-transform: rotate(0deg);}
to {-o-transform: rotate(360deg);}
}
/* second method */
div.loading2 {width:200px; height:200px; position:relative; float:left; margin:0 10px;}
div.three {background:#222;}
div.loading2 {width:200px; height:200px; background:#222; position:relative;}
div.loading2:before,
div.loading2:after {position:absolute; margin:auto; z-index:10; left:0; top:0; right:0; bottom:0; content:""; display:block; width:20px; height:20px; border:5px solid #fff; border-color:rgba(255,255,255,0.6) rgba(255,255,255,0.08) rgba(255,255,255,0.1) rgba(255,255,255,0.2) ; border-radius:200px;
}
div.loading2:before {
-webkit-animation:rotate1 1s steps(8) infinite;
-o-animation:rotate1 1s steps(8) infinite;
animation:rotate1 1s steps(8) infinite;
}
div.loading2:after {
-webkit-animation:rotate2 1s steps(8) infinite;
-o-animation:rotate2 1s steps(8) infinite;
animation:rotate2 1s steps(8) infinite;
}
@keyframes rotate1 {
from {transform: rotate(0deg);}
to {transform: rotate(360deg);}
}
@-webkit-keyframes rotate1 {
from {-webkit-transform: rotate(0deg);}
to {-webkit-transform: rotate(360deg);}
}
@-o-keyframes rotate1 {
from {-o-transform: rotate(0deg);}
to {-o-transform: rotate(360deg);}
}
@keyframes rotate2 {
from {transform: rotate(-45deg);}
to {transform: rotate(315deg);}
}
@-webkit-keyframes rotate2 {
from {-webkit-transform: rotate(-45deg);}
to {-webkit-transform: rotate(315deg);}
}
@-o-keyframes rotate2 {
from {-o-transform: rotate(-45deg);}
to {-o-transform: rotate(315deg);}
}
</style>
- 大小: 3.1 KB
分享到:
相关推荐
这是一组效果非常炫酷的纯CSS3 Loading加载动画特效。这组loading动画共有27种不同的效果。每一种loading动画都是通过CSS3的keyframes帧动画来完成的,每一个加载动画都构思新颖,效果非常的酷。
10组蓝色风格的纯CSS3 Loading动画图标,这些Loading动画相对比较简单
28个纯css3 加载loading动画特效,只需要引入CSS3文件 方便使用。
当然,他并不是纯css3的,抱歉标题可能会有些歧义,但是偶尔的一点点js也是可以忽略的啦 附件提供了28个不同的加载效果,你可以任选一种作为你的手机网页端部分模块的loading效果,而不需要考虑兼容性的问题 ...
很实用的 loading 等待动画特效。纯css3
SpinKit是一组效果非常酷的纯CSS3 Loading指示器动画特效。这组loading指示器共有11种不同的效果。它通过硬件加速来制作平滑的CSS3动画过渡效果。通过它你可以制作出非常炫酷的页面loading效果。
纯CSS3实现8款Loading加载动画特效,可以比拟gif动画效果的8个创新绿色Loading加载特效,动画效果非常漂亮。 这是一款非常不错的导航菜单,鼠标悬停导航上面文章内容遮罩变暗,鼠标离开文章高亮显示。
之前我们为大家分享过很多基于纯CSS3的Loading加载动画,你可以在10组蓝色风格的纯CSS3 Loading动画图标这篇文章中找到许多实用的CSS3 Loading动画。这次我们再给大家分享5组炫酷的纯CSS3 Loading加载动画,这些...
10组蓝色风格的纯CSS3 Loading动画图标
纯CSS3创意Loading加载动画是一款非常具有创意的CSS3 Loading动画效果,整个Loading动画就像一部开足马力的发动机,在不停地循环工作,看上去Loading动画样式十分新颖。
纯css3波浪加载loading图标动画特效
这是一款共2种炫酷效果的纯CSS3 loading加载动画特效。该CSS3加载动画分别为弹跳的小方块和月亮绕地球旋转的动画效果。它们使用的技术都是CSS animation来实现,效果非常的震撼。
纯css loading动画, 设置简单,一看就明白,不用下图片,不受前端框架束缚
SpinKit是一组效果非常酷的纯CSS3 Loading指示器动画特效。这组loading指示器共有11种不同的效果。它通过硬件加速来制作平滑的CSS3动画过渡效果。通过它你可以制作出非常炫酷的页面loading效果。
纯css-loading兼容Safari ,Chrome,Mozilla Firefox,opera,ie10+
纯css3 loading线性圆形加载动画特效源码.zip