Commit 83446058 authored by huangzihao's avatar huangzihao

添加动画

parent c4e582ea
......@@ -475,151 +475,156 @@ li {
-ms-flex-pack: justify;
justify-content: space-between;
}
.content .center-section .center-bottom .section_1 {
.content .center-section .center-bottom .section_wrap {
height: 281px;
background: url(../images/container.png) 100% no-repeat;
background-size: 100% 100%;
margin-top: 15px;
width: 866px;
}
.content .center-section .center-bottom .section_1 .text-ball-num {
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 {
.content .center-section .center-bottom .section_wrap .section_in {
width: 776px;
height: 176px;
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;
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;
font-size: 18px;
font-family: SourceHanSansCN-Medium;
text-align: center;
white-space: nowrap;
line-height: 136px;
margin: -50px 0 0 61px;
}
.content .center-section .center-bottom .section_1 .text-ball .text-wrapper_36 {
margin: -51px 0 64px 58px;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-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_3 {
height: 176px;
background: url(../images/ball.png) 100% no-repeat;
background-size: 100% 100%;
margin-left: 24px;
.content .center-section .center-bottom .section_wrap .section_in .section_list li .border {
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;
background: url(../images/ball.png) 100% no-repeat;
background-size: 100% 100%;
margin-left: 24px;
position: absolute;
z-index: 1;
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;
height: 176px;
position: absolute;
left: 0;
top: 0;
}
.content .center-section .center-bottom .section_1 .section_4 .box_54 {
margin: 26px 0 0 26px;
.content .center-section .center-bottom .section_wrap .section_in .section_list li .border::before {
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 {
width: 72px;
height: 54px;
margin: 32px 0 0 25px;
.content .center-section .center-bottom .section_wrap .section_in .section_list li .border::after {
background: url(../images/ball-3.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 .text_118 {
width: 72px;
height: 17px;
overflow-wrap: break-word;
color: #ffffff;
font-size: 18px;
font-family: SourceHanSansCN-Medium;
text-align: center;
white-space: nowrap;
line-height: 24px;
.content .center-section .center-bottom .section_wrap .section_in .section_list li .border span {
background: url(../images/ball-4.png) no-repeat center;
-webkit-animation: rotateLeft 50s 0s linear infinite;
animation: rotateLeft 50s 0s linear infinite;
}
.content .center-section .center-bottom .section_1 .section_5 {
height: 176px;
background: url(../images/ball.png) 100% no-repeat;
background-size: 100% 100%;
margin-left: 24px;
.content .center-section .center-bottom .section_wrap .section_in .section_list li .content {
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 {
margin: 26px 0 0 26px;
.content .center-section .center-bottom .section_wrap .section_in .section_list li .content .title,
.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 {
width: 72px;
height: 55px;
margin: 31px 0 0 25px;
.content .center-section .center-bottom .section_wrap .section_in .section_list li .content .title {
font-size: 16px;
}
.content .center-section .center-bottom .section_1 .section_5 .box_55 .text-group_9 .text_121 {
width: 72px;
height: 18px;
overflow-wrap: break-word;
color: #ffffff;
font-size: 18px;
font-family: SourceHanSansCN-Medium;
text-align: center;
white-space: nowrap;
line-height: 24px;
.content .center-section .center-bottom .section_wrap .section_in .section_list li .content .percentage {
font-size: 32px;
font-weight: bold;
text-shadow: 0 0 10px #078792;
}
.content .center-section .center-bottom .section_wrap .section_in .section_list li .content .percentage span {
font-size: 25px;
font-weight: normal;
}
@-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 @@
<!--下部统计区域-->
<div class="center-bottom">
<!--科技感框-->
<div class="section_1">
<div class="section_2 flex-row">
<div class="text-ball flex-col">
<span class="text_73">峰谷差</span>
<div class="text-wrapper_36 text-wrapper">
<span class="text-ball-num">88</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 class="section_wrap">
<div class="section_in flex-row">
<ul class="section_list">
<li>
<div class="border">
<span></span>
</div>
</div>
</div>
<div class="section_4 flex-col">
<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 class="content">
<div class="title">峰谷差</div>
<div class="percentage">88<span>%</span></div>
</div>
</div>
</div>
<div class="section_5 flex-col">
<div class="box_55 flex-row">
<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>
</li>
<li>
<div class="border">
<span></span>
</div>
</div>
</div>
<div class="content">
<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>
......
......@@ -390,149 +390,83 @@ li {
display: flex;
justify-content: space-between;
}
.section_1 {
.section_wrap {
height: 281px;
background: url(../images/container.png) 100% no-repeat;
background-size: 100% 100%;
margin-top: 15px;
width: 866px;
.text-ball-num {
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 {
.section_in {
width: 776px;
height: 176px;
padding: 52px 0 0 48px;
}
.text-ball {
width: 176px;
height: 176px;
background: url(../images/ball.png) 100% no-repeat;
background-size: 100% 100%;
.text_73 {
width: 52px;
height: 18px;
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: 136px;
margin: -50px 0 0 61px;
}
.text-wrapper_36 {
margin: -51px 0 64px 58px;
}
}
.section_3 {
height: 176px;
background: url(../images/ball.png) 100% no-repeat;
background-size: 100% 100%;
margin-left: 24px;
width: 176px;
.group_27 {
margin: 26px 0 0 26px;
.text-group_7 {
width: 83px;
height: 55px;
margin: 31px 0 0 24px;
.text_115 {
width: 54px;
height: 18px;
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;
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;
.section_list {
width: 100%;
display: flex;
justify-content: space-between;
li {
width: 176px;
height: 176px;
color: #ffffff;
display: flex;
align-items: center;
justify-content: center;
.border {
width: 176px;
height: 176px;
position: absolute;
z-index: 1;
background: url(../images/ball-1.png) no-repeat center;
&::before,
&::after,
span {
content: " ";
display: block;
width: 176px;
height: 176px;
position: absolute;
left: 0;
top: 0;
}
&::before {
background: url(../images/ball-2.png) no-repeat center;
animation: rotateRight 20s 0s linear infinite;
}
&::after {
background: url(../images/ball-3.png) no-repeat center;
animation: rotateRight 20s 0s linear infinite;
}
span {
background: url(../images/ball-4.png) no-repeat center;
animation: rotateLeft 50s 0s linear infinite;
}
}
}
}
}
.section_5 {
height: 176px;
background: url(../images/ball.png) 100% no-repeat;
background-size: 100% 100%;
margin-left: 24px;
width: 176px;
.box_55 {
margin: 26px 0 0 26px;
.text-group_9 {
width: 72px;
height: 55px;
margin: 31px 0 0 25px;
.text_121 {
width: 72px;
height: 18px;
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;
position: absolute;
z-index: 2;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
.title,
.percentage {
width: 100%;
text-align: center;
}
.title {
font-size: 16px;
}
.percentage {
font-size: 32px;
font-weight: bold;
text-shadow: 0 0 10px #078792;
span {
font-size: 25px;
font-weight: normal;
}
}
}
}
}
......@@ -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