Commit 83446058 authored by huangzihao's avatar huangzihao

添加动画

parent c4e582ea
...@@ -475,151 +475,156 @@ li { ...@@ -475,151 +475,156 @@ li {
-ms-flex-pack: justify; -ms-flex-pack: justify;
justify-content: space-between; justify-content: space-between;
} }
.content .center-section .center-bottom .section_1 { .content .center-section .center-bottom .section_wrap {
height: 281px; height: 281px;
background: url(../images/container.png) 100% no-repeat; background: url(../images/container.png) 100% no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
margin-top: 15px; margin-top: 15px;
width: 866px; width: 866px;
} }
.content .center-section .center-bottom .section_1 .text-ball-num { .content .center-section .center-bottom .section_wrap .section_in {
width: 64px;
height: 27px;
overflow-wrap: break-word;
color: #078792;
font-size: 35px;
font-family: SourceHanSansCN-Bold;
text-align: left;
white-space: nowrap;
line-height: 35px;
}
.content .center-section .center-bottom .section_1 .text-ball-percent {
width: 64px;
height: 27px;
overflow-wrap: break-word;
color: #078792;
font-size: 24px;
font-family: SourceHanSansCN-Bold;
text-align: left;
white-space: nowrap;
line-height: 24px;
}
.content .center-section .center-bottom .section_1 .text-wrapper {
width: 64px;
height: 27px;
overflow-wrap: break-word;
font-size: 0;
font-family: SourceHanSansCN-Bold;
text-align: left;
white-space: nowrap;
line-height: 35px;
margin: 29px 5px 0px -68px;
}
.content .center-section .center-bottom .section_1 .section_2 {
width: 776px; width: 776px;
height: 176px; height: 176px;
padding: 52px 0 0 48px; padding: 52px 0 0 48px;
} }
.content .center-section .center-bottom .section_1 .text-ball { .content .center-section .center-bottom .section_wrap .section_in .section_list {
width: 100%;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
-ms-flex-pack: justify;
justify-content: space-between;
}
.content .center-section .center-bottom .section_wrap .section_in .section_list li {
width: 176px; width: 176px;
height: 176px; height: 176px;
background: url(../images/ball.png) 100% no-repeat;
background-size: 100% 100%;
}
.content .center-section .center-bottom .section_1 .text-ball .text_73 {
width: 52px;
height: 18px;
overflow-wrap: break-word;
color: #ffffff; color: #ffffff;
font-size: 18px; display: -webkit-box;
font-family: SourceHanSansCN-Medium; display: -webkit-flex;
text-align: center; display: -ms-flexbox;
white-space: nowrap; display: flex;
line-height: 136px; -webkit-box-align: center;
margin: -50px 0 0 61px; -webkit-align-items: center;
} -ms-flex-align: center;
.content .center-section .center-bottom .section_1 .text-ball .text-wrapper_36 { align-items: center;
margin: -51px 0 64px 58px; -webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
} }
.content .center-section .center-bottom .section_1 .section_3 { .content .center-section .center-bottom .section_wrap .section_in .section_list li .border {
height: 176px;
background: url(../images/ball.png) 100% no-repeat;
background-size: 100% 100%;
margin-left: 24px;
width: 176px; width: 176px;
}
.content .center-section .center-bottom .section_1 .section_3 .group_27 {
margin: 26px 0 0 26px;
}
.content .center-section .center-bottom .section_1 .section_3 .group_27 .text-group_7 {
width: 83px;
height: 55px;
margin: 31px 0 0 24px;
}
.content .center-section .center-bottom .section_1 .section_3 .group_27 .text-group_7 .text_115 {
width: 54px;
height: 18px;
overflow-wrap: break-word;
color: #ffffff;
font-size: 18px;
font-family: SourceHanSansCN-Medium;
text-align: center;
white-space: nowrap;
line-height: 24px;
margin-left: 10px;
}
.content .center-section .center-bottom .section_1 .section_3 .group_27 .text-group_7 .text-wrapper_57 {
width: 83px;
}
.content .center-section .center-bottom .section_1 .section_4 {
height: 176px; height: 176px;
background: url(../images/ball.png) 100% no-repeat; position: absolute;
background-size: 100% 100%; z-index: 1;
margin-left: 24px; background: url(../images/ball-1.png) no-repeat center;
}
.content .center-section .center-bottom .section_wrap .section_in .section_list li .border::before,
.content .center-section .center-bottom .section_wrap .section_in .section_list li .border::after,
.content .center-section .center-bottom .section_wrap .section_in .section_list li .border span {
content: " ";
display: block;
width: 176px; width: 176px;
height: 176px;
position: absolute;
left: 0;
top: 0;
} }
.content .center-section .center-bottom .section_1 .section_4 .box_54 { .content .center-section .center-bottom .section_wrap .section_in .section_list li .border::before {
margin: 26px 0 0 26px; background: url(../images/ball-2.png) no-repeat center;
-webkit-animation: rotateRight 20s 0s linear infinite;
animation: rotateRight 20s 0s linear infinite;
} }
.content .center-section .center-bottom .section_1 .section_4 .box_54 .text-group_8 { .content .center-section .center-bottom .section_wrap .section_in .section_list li .border::after {
width: 72px; background: url(../images/ball-3.png) no-repeat center;
height: 54px; -webkit-animation: rotateRight 20s 0s linear infinite;
margin: 32px 0 0 25px; animation: rotateRight 20s 0s linear infinite;
} }
.content .center-section .center-bottom .section_1 .section_4 .box_54 .text-group_8 .text_118 { .content .center-section .center-bottom .section_wrap .section_in .section_list li .border span {
width: 72px; background: url(../images/ball-4.png) no-repeat center;
height: 17px; -webkit-animation: rotateLeft 50s 0s linear infinite;
overflow-wrap: break-word; animation: rotateLeft 50s 0s linear infinite;
color: #ffffff;
font-size: 18px;
font-family: SourceHanSansCN-Medium;
text-align: center;
white-space: nowrap;
line-height: 24px;
} }
.content .center-section .center-bottom .section_1 .section_5 { .content .center-section .center-bottom .section_wrap .section_in .section_list li .content {
height: 176px;
background: url(../images/ball.png) 100% no-repeat;
background-size: 100% 100%;
margin-left: 24px;
width: 176px; width: 176px;
height: 176px;
position: absolute;
z-index: 2;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
} }
.content .center-section .center-bottom .section_1 .section_5 .box_55 { .content .center-section .center-bottom .section_wrap .section_in .section_list li .content .title,
margin: 26px 0 0 26px; .content .center-section .center-bottom .section_wrap .section_in .section_list li .content .percentage {
width: 100%;
text-align: center;
} }
.content .center-section .center-bottom .section_1 .section_5 .box_55 .text-group_9 { .content .center-section .center-bottom .section_wrap .section_in .section_list li .content .title {
width: 72px; font-size: 16px;
height: 55px;
margin: 31px 0 0 25px;
} }
.content .center-section .center-bottom .section_1 .section_5 .box_55 .text-group_9 .text_121 { .content .center-section .center-bottom .section_wrap .section_in .section_list li .content .percentage {
width: 72px; font-size: 32px;
height: 18px; font-weight: bold;
overflow-wrap: break-word; text-shadow: 0 0 10px #078792;
color: #ffffff; }
font-size: 18px; .content .center-section .center-bottom .section_wrap .section_in .section_list li .content .percentage span {
font-family: SourceHanSansCN-Medium; font-size: 25px;
text-align: center; font-weight: normal;
white-space: nowrap; }
line-height: 24px; @-webkit-keyframes rotateRight {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes rotateRight {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@-webkit-keyframes rotateLeft {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(-360deg);
transform: rotate(-360deg);
}
}
@keyframes rotateLeft {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(-360deg);
transform: rotate(-360deg);
}
} }
...@@ -162,48 +162,46 @@ ...@@ -162,48 +162,46 @@
<!--下部统计区域--> <!--下部统计区域-->
<div class="center-bottom"> <div class="center-bottom">
<!--科技感框--> <!--科技感框-->
<div class="section_1"> <div class="section_wrap">
<div class="section_2 flex-row"> <div class="section_in flex-row">
<div class="text-ball flex-col"> <ul class="section_list">
<span class="text_73">峰谷差</span> <li>
<div class="text-wrapper_36 text-wrapper"> <div class="border">
<span class="text-ball-num">88</span> <span></span>
<span class="text-ball-percent">%</span>
</div>
</div>
<div class="section_3 flex-col">
<div class="group_27 flex-row">
<div class="text-group_7 flex-col justify-between">
<span class="text_115">消纳率</span>
<div class="text-wrapper_57 text-wrapper">
<span class="text-ball-num">100</span>
<span class="text-ball-percent">%</span>
</div>
</div> </div>
</div> <div class="content">
</div> <div class="title">峰谷差</div>
<div class="section_4 flex-col"> <div class="percentage">88<span>%</span></div>
<div class="box_54 flex-row">
<div class="text-group_8 flex-col justify-between">
<span class="text_118">碳排系数</span>
<div class="text-wrapper">
<span class="text-ball-num">98</span>
<span class="text-ball-percent">%</span>
</div>
</div> </div>
</div> </li>
</div> <li>
<div class="section_5 flex-col"> <div class="border">
<div class="box_55 flex-row"> <span></span>
<div class="text-group_9 flex-col justify-between">
<span class="text_121">系统效率</span>
<div class="text-wrapper">
<span class="text-ball-num">88</span>
<span class="text-ball-percent">%</span>
</div>
</div> </div>
</div> <div class="content">
</div> <div class="title">消纳率</div>
<div class="percentage">100<span>%</span></div>
</div>
</li>
<li>
<div class="border">
<span></span>
</div>
<div class="content">
<div class="title">碳排系数</div>
<div class="percentage">98<span>%</span></div>
</div>
</li>
<li>
<div class="border">
<span></span>
</div>
<div class="content">
<div class="title">系统效率</div>
<div class="percentage">88<span>%</span></div>
</div>
</li>
</ul>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -390,149 +390,83 @@ li { ...@@ -390,149 +390,83 @@ li {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
.section_1 { .section_wrap {
height: 281px; height: 281px;
background: url(../images/container.png) 100% no-repeat; background: url(../images/container.png) 100% no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
margin-top: 15px; margin-top: 15px;
width: 866px; width: 866px;
.text-ball-num { .section_in {
width: 64px;
height: 27px;
overflow-wrap: break-word;
color: rgba(7, 135, 146, 1);
font-size: 35px;
font-family: SourceHanSansCN-Bold;
text-align: left;
white-space: nowrap;
line-height: 35px;
}
.text-ball-percent {
width: 64px;
height: 27px;
overflow-wrap: break-word;
color: rgba(7, 135, 146, 1);
font-size: 24px;
font-family: SourceHanSansCN-Bold;
text-align: left;
white-space: nowrap;
line-height: 24px;
}
.text-wrapper {
width: 64px;
height: 27px;
overflow-wrap: break-word;
font-size: 0;
font-family: SourceHanSansCN-Bold;
text-align: left;
white-space: nowrap;
line-height: 35px;
margin: 29px 5px 0px -68px;
}
.section_2 {
width: 776px; width: 776px;
height: 176px; height: 176px;
padding: 52px 0 0 48px; padding: 52px 0 0 48px;
} .section_list {
.text-ball { width: 100%;
width: 176px; display: flex;
height: 176px; justify-content: space-between;
background: url(../images/ball.png) 100% no-repeat; li {
background-size: 100% 100%; width: 176px;
.text_73 { height: 176px;
width: 52px; color: #ffffff;
height: 18px; display: flex;
overflow-wrap: break-word; align-items: center;
color: rgba(255, 255, 255, 1); justify-content: center;
font-size: 18px; .border {
font-family: SourceHanSansCN-Medium; width: 176px;
text-align: center; height: 176px;
white-space: nowrap; position: absolute;
line-height: 136px; z-index: 1;
margin: -50px 0 0 61px; background: url(../images/ball-1.png) no-repeat center;
} &::before,
.text-wrapper_36 { &::after,
margin: -51px 0 64px 58px; span {
} content: " ";
} display: block;
.section_3 { width: 176px;
height: 176px; height: 176px;
background: url(../images/ball.png) 100% no-repeat; position: absolute;
background-size: 100% 100%; left: 0;
margin-left: 24px; top: 0;
width: 176px; }
.group_27 { &::before {
margin: 26px 0 0 26px; background: url(../images/ball-2.png) no-repeat center;
.text-group_7 { animation: rotateRight 20s 0s linear infinite;
width: 83px; }
height: 55px; &::after {
margin: 31px 0 0 24px; background: url(../images/ball-3.png) no-repeat center;
.text_115 { animation: rotateRight 20s 0s linear infinite;
width: 54px; }
height: 18px; span {
overflow-wrap: break-word; background: url(../images/ball-4.png) no-repeat center;
color: rgba(255, 255, 255, 1); animation: rotateLeft 50s 0s linear infinite;
font-size: 18px; }
font-family: SourceHanSansCN-Medium;
text-align: center;
white-space: nowrap;
line-height: 24px;
margin-left: 10px;
}
.text-wrapper_57 {
width: 83px;
}
}
}
}
.section_4 {
height: 176px;
background: url(../images/ball.png) 100% no-repeat;
background-size: 100% 100%;
margin-left: 24px;
width: 176px;
.box_54 {
margin: 26px 0 0 26px;
.text-group_8 {
width: 72px;
height: 54px;
margin: 32px 0 0 25px;
.text_118 {
width: 72px;
height: 17px;
overflow-wrap: break-word;
color: rgba(255, 255, 255, 1);
font-size: 18px;
font-family: SourceHanSansCN-Medium;
text-align: center;
white-space: nowrap;
line-height: 24px;
} }
} .content {
} width: 176px;
} height: 176px;
.section_5 { position: absolute;
height: 176px; z-index: 2;
background: url(../images/ball.png) 100% no-repeat; display: flex;
background-size: 100% 100%; flex-direction: column;
margin-left: 24px; align-items: center;
width: 176px; justify-content: center;
.box_55 { .title,
margin: 26px 0 0 26px; .percentage {
.text-group_9 { width: 100%;
width: 72px; text-align: center;
height: 55px; }
margin: 31px 0 0 25px; .title {
.text_121 { font-size: 16px;
width: 72px; }
height: 18px; .percentage {
overflow-wrap: break-word; font-size: 32px;
color: rgba(255, 255, 255, 1); font-weight: bold;
font-size: 18px; text-shadow: 0 0 10px #078792;
font-family: SourceHanSansCN-Medium; span {
text-align: center; font-size: 25px;
white-space: nowrap; font-weight: normal;
line-height: 24px; }
}
} }
} }
} }
...@@ -541,3 +475,20 @@ li { ...@@ -541,3 +475,20 @@ li {
} }
} }
} }
@keyframes rotateRight {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
@keyframes rotateLeft {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(-360deg);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment