css实现8中loadding加载动画效果代码
代码语言:html
所属分类:加载滚动
代码描述:css实现8中loadding加载动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html>
<head>
<title></title>
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/bootstrap.3.3.4.css">
<style>
body {
background: #000 !important;
color: #FFF;
}
p {
font-family: 'Montserrat Alternates', sans-serif;
font-size: 18px;
font-weight: 700;
padding-bottom: 20px;
color: #FFF;
}
.loader {
width: 50px;
height: 50px;
display: inline-block;
padding: 0px;
opacity: 0.5;
border: 3px solid #09acfd;
-webkit-animation: loader 1s ease-in-out infinite alternate;
animation: loader 1s ease-in-out infinite alternate;
}
.loader:before {
content: " ";
position: absolute;
z-index: -1;
top: 5px;
left: 5px;
right: 5px;
bottom: 5px;
border: 3px solid #09acfd;
}
.loader:after {
content: " ";
position: absolute;
z-index: -1;
top: 15px;
left: 15px;
right: 15px;
bottom: 15px;
border: 3px solid #09acfd;
}
@keyframes loader {
from {
transform: rotate(0deg) scale(1,1);
border-radius: 0px;
}
to {
transform: rotate(360deg) scale(0, 0);
border-radius: 50px;
}
}
@-webkit-keyframes loader {
from {
-webkit-transform: rotate(0deg) scale(1, 1);
border-radius: 0px;
}
to {
-webkit-transform: rotate(360deg) scale(0,0 );
border-radius: 50px;
}
}
.loader1 {
display: inline-block;
font-size: 0px;
padding: 0px;
}
.loader1 span {
vertical-align: middle;
border-radius: 100%;
display: inline-block;
width: 10px;
height: 10px;
margin: 3px 2px;
-webkit-animation: loader1 0.8s linear infinite alternate;
animation: loader1 0.8s linear infinite alternate;
}
.loader1 span:nth-child(1) {
-webkit-animation-delay: -1s;
animation-delay: -1s;
background: rgba(245, 103, 115,0.6);
}
.loader1 span:nth-child(2) {
-webkit-animation-delay: -0.8s;
animation-delay: -0.8s;
background: rgba(245, 103, 115,0.8);
}
.loader1 span:nth-child(3) {
-webkit-animation-delay: -0.26666s;
animation-delay: -0.26666s;
background: rgba(245, 103, 115,1);
}
.loader1 span:nth-child(4) {
-webkit-animation-delay: -0.8s;
animation-delay: -0.8s;
background: rgba(245, 103, 115,0.8);
}
.loader1 span:nth-child(5) {
-webkit-animation-delay: -1s;
animation-delay: -1s;
background: rgba(245, 103, 115,0.4);
}
@keyframes loader1 {
from {
transform: scale(0, 0);
}
to {
transform: scale(1, 1);
}
}
@-webkit-keyframes loader1 {
from {
-webkit-transform: scale(0, 0);
}
to {
-webkit-transform: scale(1, 1);
}
}
.loader2 {
width: 25px;
height: 25px;
display: inline-block;
padding: 0px;
border-radius: 100%;
border: 5px solid;
border-top-color: rgba(254, 168, 23, 0.65);
border-bottom-color: rgba(57, 154, 219, 0.65);
border-left-color: rgba(188, 84, 93, 0.95);
border-right-color: rgba(137, 188, 79, 0.95);
-webkit-animation: loader2 2s ease-in-out infinite alternate;
animation: loader2 2s ease-in-out infinite alternate;
}
@keyframes loader2 {
from {
transform: rotate(0deg);
}
to {
transform: rotate(720deg);
}
}
@-webkit-keyframes loader2 {
from {
-webkit-transform: rotate(0deg);
}
to {
-webkit-transform: rotate(720deg);
}
}
.loader3 {
width: 50px;
height: 50px;
display: inline-block;
padding: 0px;
text-align: left;
}
.loader3 span {
position: absolute;
display: inline-block;
width: 50px;
height: 50px;
border-radius: 100%;
background: rgba(135, 211, 124,1);
-webkit-animation: loader3 1.5s linear infinite;
.........完整代码请登录后点击上方下载按钮下载查看
网友评论0