div+css炫酷扇形旋转动画效果代码
代码语言:html
所属分类:动画
代码描述:div+css炫酷扇形旋转动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
body {
overflow: hidden;
}
.holder {
width: 500px;
height: 250px;
position: relative;
}
.holder .circle {
border-radius: 100% 100% 0 0;
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
transform-origin: bottom center;
}
.holder .circle:nth-child(1) {
background: black;
border-bottom: none;
border-radius: 25px 25px 0 0;
width: 25px;
height: 12.5px;
z-index: 15;
-webkit-animation: circle-1 10s infinite ease-in-out;
animation: circle-1 10s infinite ease-in-out;
}
@-webkit-keyframes circle-1 {
0% {
transform: translateX(-50%) rotate(0deg);
}
100% {
transform: translateX(-50%) rotate(-360deg);
}
}
@keyframes circle-1 {
0% {
transform: translateX(-50%) rotate(0deg);
}
100% {
transform: translateX(-50%) rotate(-360deg);
}
}
.holder .circle:nth-child(2) {
border: 13px solid black;
border-bottom: none;
border-radius: 31px 31px 0 0;
width: 31px;
height: 15.5px;
z-index: 14;
-webkit-animation: circle-2 10s infinite ease-in-out;
animation: circle-2 10s infinite ease-in-out;
}
@-webkit-keyframes circle-2 {
0% {
transform: translateX(-50%) rotate(0deg);
}
100% {
transform: translateX(-50%) rotate(-720deg);
}
}
@keyframes circle-2 {
0% {
transform: translateX(-50%) rotate(0deg);
}
100% {
transform: translateX(-50%) rotate(-720deg);
}
}
.holder .circle:nth-child(3) {
border: 13px solid black;
border-bottom: none;
border-radius: 62px 62px 0 0;
width: 62px;
height: 31px;
z-index: 13;
-webkit-animation: circle-3 10s infinite ease.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0