<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>HTML5/CSS3热水器 加热动画</title>
<style>
@import url(https://fonts.googleapis.com/css?family=Roboto:100,400,300,600);
@import url("https://fonts.googleapis.com/css?family=Open+Sans:400,600,600i,700");
* {
box-sizing: border-box;
}
body {
height: 100vh;
font-family: 'Open Sans';
background-color: #DFDBE5;
background-color: #bd8578;
background-image: url("data:image/svg+xml,%3Csvg width='42' height='44' viewBox='0 0 42 44' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='Page-1' fill='none' fill-rule='evenodd'%3E%3Cg id='brick-wall' fill='%23000000' fill-opacity='0.4'%3E%3Cpath d='M0 0h42v44H0V0zm1 1h40v20H1V1zM0 23h20v20H0V23zm22 0h20v20H22V23z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.wrapper {
margin: 50px auto;
width: 1000px;
text-align: center;
}
.heater {
position: relative;
display: inline-block;
}
.outlet {
content: '';
width: 90px;
height: 25px;
background-image: -webkit-repeating-linear-gradient(right, #aaa59f, #aaa59f 45%, #54514c 50%, #54514c 60%, #f7f6f2 70%, #f7f6f2 79%, #54514c 100%);
background-image: repeating-linear-gradient(to left, #aaa59f, #aaa59f 45%, #54514c 50%, #54514c 60%, #f7f6f2 70%, #f7f6f2 79%, #54514c 100%);
position: absolute;
border-radius: 10%;
top: -20px;
left: 50%;
-webkit-transform: translateX(-50%);
transform: translateX(-50%);
}
.frame {
position: relative;
height: 450px;
width: 235px;
background: #dce1e7;
box-shadow: 0px 0px 2px 2px #dbdbdb, inset 0px 0px 6px 1px #faf8f9;
}
.frame:before,
.frame:after {
content: '';
position: absolute;
top: 0;
border-bottom: 7px solid transparent;
border-top: 7px solid transparent;
height: 437px;
width: 14px;
}
.frame:before {
left: -28px;
border-right: 14px solid #c1c5cf;
}
.frame:after {
right: -28px;
border-left: 14px solid #c1c5cf;
}
.frame .flame-checker {
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
top: 40%;
width: 130px;
height: 90px;
border-radius: 10%;
overflow: hidden;
background: #6e2323;
box-shadow: 0px 0px 2px 2px #dbdbdb, 0px 0px 6px 1px #faf8f9;
}
.frame .one {
left: 10%;
}
.frame .two {
left: 30%;
}
.frame .three {
left: 50%;
}
.frame .four {
left: 70%;
}
.frame .five {
left: 90%;
}
.frame .knobs {
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
left: 48%;
top: 74%;
width: 145px;
height: 90px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.firepit {
position: absolute;
bottom: 0;
-webkit-transform: translateX(-50%);
transform: translateX(-50%);
}
.fire {
position: relative;
width: 40px;
height: 40px;
}
.fire .flame {
position: absolute;
bottom: 0;
left: 0;
opacity: .9;
width: 100%;
height: 100%;
border-bottom-right-radius: 70%;
border-bottom-left-radius: 70%;
border-top-left-radius: 70%;
-webkit-transform: rotate(-45deg) skew(-10deg, -10deg);
transform: rotate(-45deg) skew(-10deg, -10deg);
background-color: #ff2200;
background-image: -webkit-linear-gradient(top right, rgba(255, 34, 0, 0.9), rgba(255, 106, 0, 0.7));
background-image: linear-gradient(to bottom left, rgba(255, 34, 0, 0.9), rgba(255, 106, 0, 0.7));
z-index: 1;
-webkit-animation-iteration-count: infinite;
animation-iteration-count: infinite;
-webkit-animation-fill-mode: forwards;
animation-fill-mode: forwards;
-webkit-animation-name: burn-left;
animation-name: burn-left;
-webkit-animation-duration: 300ms;
animation-duration: 300ms;
}
.fire .flame:nth-of-type(2n) {
-webkit-animation-name: burn-right;
animation-name: burn-right;
-webkit-animation-duration: 400ms;
animation-duration: 400ms;
}
.fire .flame:nth-of-type(2) {
height: 80%;
width: 80%;
left: 10%;
background-color: #ff6a00;
background-image: -webkit-linear-gradient(top right, rgba(255, 106, 0, 0.1), rgba(255, 200, 0, 0.1));
background-image: linear-gradient(to bottom left, rgba(255, 106, 0, 0.1), rgba(255, 200, 0, 0.1));
z-index: 2;
}
.fire .flame:nth-of-type(3) {
height: 50%;
width: 50%;
left: 25%;
background-image: -webkit-linear-gradient(top right, #ffc800, white);
background-image: linear-gradient(to bottom left, #ffc800, white);
z-index: 3;
}
.fire .flame:nth-of-type(4) {
height: 30%;
width: 30%;
left: 35%;
background-color: white;
background-image: -webkit-linear-gradient(top right, rgba(255, 255, 255, 0.3), rgba(0, 55, 255, 0.9));
background-image: linear-gradient(to bottom left, rgba(255, 255, 255, 0.3), rgba(0, 55, 255, 0.9));
opacity: 1;
z-index: 4;
}
.spark {
position: absolute;
bottom: 46%;
left: 15%;
width: 3px;
height: 3px;
background-color: rgba(255, 106, 0, 0.4);
-webkit-animation-name: fly-up-burnout-1;
animation-name: fly-up-burnout-1;
-webkit-animation-duration: 6s;
animation-duration: 6s;
-webkit-animation-timing-function: linear;
animation-timing-function: linear;
-webkit-animation-iteration-count: infinite;
animation-iteration-count: infinite;
-webkit-animation-delay: .4s;
animation-delay: .4s;
}
.spark:nth-of-type(2n) {
-webkit-animation-name: fly-up-burnout-2;
animation-name: fly-up-burnout-2;
-webkit-animation-duration: 8.4s;
animation-duration: 8.4s;
-webkit-animation-delay: 1s;
animation-delay: 1s;
}
.spark:nth-of-type(3n) {
-webkit-animation-delay: 1.9s;
animation-delay: 1.9s;
-webkit-animation-duration: 8s;
animation-duration: 8s;
left: 55%;
}
.spark:nth-of-type(4n) {
-webkit-animation-delay: 2.6s;
animation-delay: 2.6s;
-webkit-animation-duration: 7s;
animation-duration: 7s;
left: 88%;
}
.spark:nth-of-type(5n) {
-webkit-animation-delay: 1.4s;
animation-delay: 1.4s;
-webkit-animation-duration: 7s;
animation-duration: 7s;
left: 22%;
}
.spark:nth-of-type(6n) {
-webkit-animation-delay: 3.2s;
animation-delay: 3.2s;
left: 61%;
}
.spark:nth-of-type(7n) {
-webkit-animation-delay: .8s;
animation-delay: .8s;
-webkit-animation-duration: 5s;
animation-duration: 5s;
left: 64%;
}
.spark:nth-of-type(8n) {
-webkit-animation-delay: 5s;
animation-delay: 5s;
left: 19%;
}
.spark:nth-of-type(9n) {
-webkit-animation-delay: 4s;
animation-delay: 4s;
-webkit-animation-duration: 6.8s;
animation-duration: 6.8s;
left: 22%;
}
.spark:nth-of-type(10n) {
-webkit-animation-delay: 5.2s;
animation-delay: 5.2s;
left: 61%;
}
.spark:nth-of-type(11n) {
-webkit-animation-delay: 3.5s;
animation-delay: 3.5s;
-webkit-animation-duration: 8s;
animation-duration: 8s;
left: 81%;
}
.spark:nth-of-type(12n) {
-webkit-animation-delay: 2s;
animation-delay: 2s;
left: 85%;
}
.knob-wrapper {
border-radius: 50%;
position: relative;
width: 60px;
height: 60px;
background: -webkit-linear-gradient(#ACA79B, #F9F8F7);
background: linear-gradient(#ACA79B, #F9F8F7);
}
.knob-wr