Mouse in the House by

Avril. H

On: 5 Jul 2016

<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8">
	<title>mouse</title>
</head>

<body>
	<div class="wrapper">
		<div class="table">
			<div class="box"></div>
			<div class="cheese">
				<span></span>
				<span></span>
				<span></span>
				<span></span>
			</div>
			<div class="mouse">
				<div class="body">
					<div class="ear">
						<div class="left"></div>
						<div class="right"></div>
					</div>
					<div class="tail"></div>
				</div>
				<div class="face">
					<div class="line"></div>
					<div class="line"></div>
					<div class="line"></div>
					<div class="line"></div>
					<div class="line"></div>
					<div class="line"></div>
				</div>
			</div>
			<div class="sleep">
				<span>z</span>
				<span>z</span>
				<span>z</span>
			</div>
		</div>
	</div>
</body>
</html>
.wrapper{
		background-color: #ebf9ee;
		margin: 0;
		position: fixed;
		top: 0;
		right: 0;
		left: 0;
		bottom: 0;
	}
	.table{
		width: 1000px;
		height: 40%;
		position: absolute;
		bottom: 0;
		left: 0;
		border-top: 50px solid #F4E3B2;
	}
	.table .box{
		border-top: #EFC88B 100px solid;
		border-right: #EFC88B 120px solid;
		height: 100%;
		width: 700px;
	}
	.cheese{
		width: 130px;
		height: 50px;
		background-color: #ffdc25;
		position: absolute;
		top: -100px;
		left: 30px;
		border-radius: 0 5px 5px;
		box-shadow: 0px -1px 3px #FFE548;
	}
	.cheese:before{
		content: '';
		position: absolute;
		top: -40px;
		border-bottom: 39px solid #FFE548;
		border-right: 90px solid transparent;
		border-left: 35px solid transparent;
		width: 3px;
	}
	.cheese span{
		position: absolute;
		background-color: #e6bf00;
	}
	.cheese span:nth-child(1){
		width: 25px;
		height: 25px;
		border-radius: 50%;
		top: 10px;
		left: 15px;
	}
	.cheese span:nth-child(2){
	    width: 28px;
	    height: 18px;
	    border-radius: 50%;
	    top: 25px;
	    left: 54px;
	}
	.cheese span:nth-child(3){
		width: 25px;
		height: 14px;
		border-radius: 50%;
		top: 0px;
		right: 15px;
	}
	.cheese span:nth-child(4){
		width: 21px;
	    height: 12px;
	    border-radius: 50%;
	    top: -30px;
	    left: 36px;
	}
	.mouse{
		width: 70px;
		height: 60px;
		position: absolute;
		top: -110px;
		left: 300px;
	}
	.mouse .body{
		background-color: #ccc;
		width: 70px;
		height: 60px;
		position: absolute;
		border-radius: 30px 30px 10px 10px / 50px 50px 18px 18px ;
		z-index: 1;
	}
	.mouse .ear{
		width: 54px;
	    height: 20px;
	    margin: 0 auto;
	    top: -10px;
	    position: absolute;
	    right: 0;
	    left: 0;
	}
	.mouse .ear .right,
	.mouse .ear .left{
		width: 20px;
	    height: 20px;
	    background-color: #ccc;
	    position: absolute;
	    border-radius: 9px 9px 5px 5px / 15px 15px 5px 5px;
	}
	.mouse .ear .right{
	    right: 0;
	    -webkit-transform: rotate(29deg);
	    -ms-transform: rotate(29deg);
	    -o-transform: rotate(29deg);
	    transform: rotate(29deg);
	}
	.mouse .ear .left{
	    left: 0;
	    -webkit-transform: rotate(-29deg);
	    -ms-transform: rotate(-29deg);
	    -o-transform: rotate(-29deg);
	    transform: rotate(-29deg);
	}
	.mouse .tail{
		width: 15px;
		height: 10px;
		border-bottom: 1px solid #999;
		border-left: 1px solid #999;
		border-right: 1px solid #999;
		position: absolute;
		border-radius: 4px 6px 5px 5px / 4px 6px 5px 5px;
		bottom: 5px;
		left: 8px;
		right: 0;
		margin: auto;
	}
	.mouse .face {
		position: absolute;
		z-index: 0;
		width: 100%;
		height: 30px;
	}
	.mouse .face .line{
		width: 30px;
		height: 30px;
		/* background-color: #666; */
		border-top: 1px solid #666;
		position: absolute;
		right: 0;
		left: 0;
		margin: auto;
		z-index: 0;
	}
	.mouse .face .line:nth-child(1){
		left: -70px;
		-webkit-transform: rotate(19deg);
		-ms-transform: rotate(19deg);
		-o-transform: rotate(19deg);
		transform: rotate(19deg);
		top: 10px;
		border-radius: 11px 12px 0px 0px / 4px 10px 0px 0px;
	}
	.mouse .face .line:nth-child(2){
		left: -70px;
		-webkit-transform: rotate(3deg);
		-ms-transform: rotate(3deg);
		-o-transform: rotate(3deg);
		transform: rotate(3deg);
		top: 14px;
		border-radius: 11px 12px 0px 0px / 4px 10px 0px 0px;
	}
	.mouse .face .line:nth-child(3){
		left: -65px;
	    -webkit-transform: rotate(-10deg);
	    -ms-transform: rotate(-10deg);
	    -o-transform: rotate(-10deg);
	    transform: rotate(-10deg);
	    top: 19px;
		border-radius: 11px 12px 0px 0px / 4px 10px 0px 0px;
	}
	.mouse .face .line:nth-child(4){
		right: -70px;
	    -webkit-transform: rotate(-19deg);
	    -ms-transform: rotate(-19deg);
	    -o-transform: rotate(-19deg);
	    transform: rotate(-19deg);
	    top: 10px;
		border-radius: 12px 11px 0px 0px / 10px 4px 0px 0px;
	}
	.mouse .face .line:nth-child(5){
		right: -70px;
		-webkit-transform: rotate(-3deg);
		-ms-transform: rotate(-3deg);
		-o-transform: rotate(-3deg);
		transform: rotate(-3deg);
		top: 14px;
		border-radius: 12px 11px 0px 0px / 10px 4px 0px 0px;
	}
	.mouse .face .line:nth-child(6){
		right: -65px;
	    -webkit-transform: rotate(10deg);
	    -ms-transform: rotate(10deg);
	    -o-transform: rotate(10deg);
	    transform: rotate(10deg);
	    top: 19px;
		border-radius: 12px 11px 0px 0px / 10px 4px 0px 0px;
	}
	.sleep{
		position: absolute;
		top: -300px;
		height: 200px;
		width: 300px;
		left: 350px;
	}
	.sleep span{
		position: absolute;
		opacity: 0;
	}
	@keyframes aniSleep{
		0%,60%{
			opacity: 0;
		}
		50%{
			opacity: 1;
		}
	}
	@-webkit-keyframes aniSleep{
		0%,60%{
			opacity: 0;
		}
		50%{
			opacity: 1;
		}
	}
	.sleep span:nth-child(1){
		font-size: 25px;
		bottom: 26px;
		left: 10px;
		-webkit-animation: aniSleep linear 1.5s 0s infinite forwards;
		-o-animation: aniSleep linear 1.5s 0s infinite forwards;
		animation: aniSleep linear 1.5s 0s infinite forwards;
	}
	.sleep span:nth-child(2){
		font-size: 35px;
		bottom: 46px;
		left: 40px;
		transform: rotate(30deg);
		-webkit-animation: aniSleep linear 1.5s .2s infinite forwards;
		-o-animation: aniSleep linear 1.5s .2s infinite forwards;
		animation: aniSleep linear 1.5s .2s infinite forwards;
	}
	.sleep span:nth-child(3){
		font-size: 45px;
		bottom: 66px;
		left: 80px;
		transform: rotate(-30deg);
		-webkit-animation: aniSleep linear 1.5s .4s infinite forwards;
		-o-animation: aniSleep linear 1.5s .4s infinite forwards;
		animation: aniSleep linear 1.5s .4s infinite forwards;
	}

26