Spaces:
Configuration error
Configuration error
File size: 1,626 Bytes
0ef735e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 | body {
background: linear-gradient(30deg, lightgreen 50%, lightcoral 50%);
font-family: "Sigmar One", cursive;
}
section {
margin: 20vh auto;
width: 40%;
height: 60vh;
border: 5px solid #bbb;
}
#title {
width: 15%;
position: absolute;
top: 12.5%;
left: 5%;
}
#sesameBg {
position: absolute;
bottom: 0%;
right: 0%;
}
#left {
float: left;
font-size: 1.5rem;
padding-left: 10%;
}
#right {
float: right;
font-size: 1.5rem;
padding-right: 5%;
}
#btnStart {
width: 65px;
height: 65px;
position: absolute;
bottom: 5%;
left: 50%;
transform: translateX(-50%);
font-family: "Sigmar One", cursive;
color: white;
text-shadow: 2px 2px 2px #333;
box-shadow: 2px 2px 3px #333;
border: 1px solid lightcoral;
border-radius: 50%;
background: lightcoral;
cursor: pointer;
}
#screen {
margin: auto;
width: 100%;
height: 100%;
height: 60vh;
background: url(../Images/opened_mouth.png) no-repeat center/contain;
position: relative;
}
#brush {
width: 300px;
height: 75px;
background: url(../Images/toothbrush.png) no-repeat center center/cover;
/* 一定要設position jQ 才能抓.pageX 和 .pageY */
position: absolute;
z-index: 1;
display: none;
}
#upperTeeth {
width: 80%;
height: 20%;
position: absolute;
top: 17.5%;
left: 10%;
}
#innerMouth {
width: 60%;
height: 27.5%;
position: absolute;
top: 35%;
left: 20%;
}
#lowerTeeth {
width: 80%;
height: 20%;
position: absolute;
bottom: 15%;
left: 10%;
}
.mouthGerm {
width: 30%;
}
.teethGerm {
width: 10%;
position: absolute;
transition: transform 0.5s;
}
|