<body>
<div class="big-basin">
<div class="trees-container">
<div class="tree-small">
<div class="tree-left"></div>
<div class="tree-right"></div>
<div class="stump"></div>
</div>
<div class="tree-large">
<div class="tree-left"></div>
<div class="tree-right"></div>
<div class="stump"></div>
</div>
</div>
<div class="banner">
<h1>Big Basin</h1>
</div>
<div class="star medium one"></div>
<div class="star medium two"></div>
<div class="star medium three"></div>
<div class="star medium four"></div>
<div class="star small five"></div>
<div class="star small six"></div>
<div class="star small seven"></div>
<div class="star small eight"></div>
<div class="star small nine"></div>
<div class="star small ten"></div>
</div>
</body>
@import url(https://fonts.googleapis.com/css?family=Ubuntu:400,700);
body {
top: 0;
left: 0;
margin: 0;
background: rgba(182, 161, 122, 0.5);
}
.big-basin {
position: relative;
height: 460px;
width: 320px;
background: rgba(46, 63, 44, 1);
border: 20px solid #b6a17a;
border-radius: 10px 10px 200px 200px;
margin: 100px auto 0 auto;
}
.trees-container {
position: absolute;
background: #334d63;
height: 300px;
width: 320px;
margin-left: 0px;
overflow: hidden;
}
/* === SMALL TREE === */
.tree-small {
position: absolute;
margin: 100px 0 0 60px;
-webkit-animation: slideup-small 1s;
-moz-animation: slideup-small 1s;
animation: slideup-small 1s;
}
.tree-small > .tree-left {
position: relative;
width: 0;
border-bottom: 60px solid rgba(46, 63, 44, 1);
border-left: 40px solid transparent;
}
.tree-small > .tree-left:before {
content: "";
position: absolute;
width: 0;
border-bottom: 80px solid rgba(46, 63, 44, 1);
border-left: 60px solid transparent;
margin: 30px 0 0 -60px;
}
.tree-small > .tree-left:after {
content: "";
position: absolute;
width: 0;
border-bottom: 110px solid rgba(46, 63, 44, 1);
border-left: 70px solid transparent;
margin: 60px 0 0 -70px;
}
.tree-small > .tree-right {
position: relative;
width: 0;
border-bottom: 60px solid rgba(22, 38, 21, 1);
border-right: 40px solid transparent;
margin: -60px 0 0 40px;
}
.tree-small > .tree-right:before {
content: "";
position: absolute;
width: 0;
border-bottom: 80px solid rgba(22, 38, 21, 1);
border-right: 60px solid transparent;
margin: 30px 0 0 0;
}
.tree-small > .tree-right:after {
content: "";
position: absolute;
width: 0;
border-bottom: 110px solid rgba(22, 38, 21, 1);
border-right: 70px solid transparent;
margin: 60px 0 0 0;
}
.tree-small > .stump {
position: relative;
background: #433825;
height: 50px;
width: 10px;
margin: 110px 0 0 30px;
}
.tree-small > .stump:after {
content: "";
position: absolute;
background: #322917;
height: 50px;
width: 10px;
margin-left: 10px;
}
/* === LARGE TREE === */
.tree-large {
position: absolute;
margin: 70px 0 0 150px;
-webkit-animation: slideup-large 1.5s;
-moz-animation: slideup-large 1.5s;
animation: slideup-large 1.5s;
}
.tree-large > .tree-left {
position: relative;
width: 0;
border-bottom: 80px solid rgba(46, 63, 44, 1);
border-left: 60px solid transparent;
}
.tree-large > .tree-left:before {
content: "";
position: absolute;
width: 0;
border-bottom: 100px solid rgba(46, 63, 44, 1);
border-left: 70px solid transparent;
margin: 30px 0 0 -70px;
}
.tree-large > .tree-left:after {
content: "";
position: absolute;
width: 0;
border-bottom: 120px solid rgba(46, 63, 44, 1);
border-left: 80px solid transparent;
margin: 70px 0 0 -80px;
}
.tree-large > .tree-right {
position: relative;
width: 0;
border-bottom: 80px solid rgba(22, 38, 21, 1);
border-right: 60px solid transparent;
margin: -80px 0 0 60px;
}
.tree-large > .tree-right:before {
content: "";
position: absolute;
width: 0;
border-bottom: 100px solid rgba(22, 38, 21, 1);
border-right: 70px solid transparent;
margin: 30px 0 0 0;
}
.tree-large > .tree-right:after {
content: "";
position: absolute;
width: 0;
border-bottom: 120px solid rgba(22, 38, 21, 1);
border-right: 80px solid transparent;
margin: 70px 0 0 0;
}
.tree-large > .stump {
position: relative;
background: #433825;
height: 80px;
width: 16px;
margin: 110px 0 0 44px;
}
.tree-large > .stump:after {
content: "";
position: absolute;
background: #322917;
height: 80px;
width: 16px;
margin-left: 16px;
}
/* === BANNER === */
.banner {
position: relative;
margin: 290px 0 0 -10px;
height: 80px;
width: 340px;
background: #b6a17a;
border-radius: 0 0 20px 20px;
text-align: center;
}
.banner h1 {
position: relative;
top: 14px;
font-family: 'Ubuntu', Helvetica, sans-serif;
font-size: 3em;
font-weight: 700;
text-transform: uppercase;
color: #433825;
-webkit-animation: appear 2s;
-moz-animation: appear 2s;
animation: appear 2s;
}
/* === STARS === */
.star {
position: absolute;
background: #d8dfe6;
border-radius: 50%;
-webkit-animation: glow 1s infinite alternate;
-moz-animation: glow 1s infinite alternate;
animation: glow 1s infinite alternate;
}
.small {
height: 6px;
width: 6px;
}
.medium {
height: 10px;
width: 10px;
}
.one {
margin: -280px 0 0 26px;
}
.two {
margin: -350px 0 0 100px;
}
.three {
margin: -314px 0 0 170px;
}
.four {
margin: -340px 0 0 270px;
}
.five {
margin: -200px 0 0 20px;
}
.six {
margin: -330px 0 0 40px;
}
.seven {
margin: -300px 0 0 114px;
}
.eight {
margin: -348px 0 0 156px;
}
.nine {
margin: -352px 0 0 220px;
}
.ten {
margin: -280px 0 0 290px;
}
/* === ANIMATIONS === */
@-webkit-keyframes glow {
0% {
-webkit-box-shadow: 0 0 0 0 #fff;
}
100% {
-webkit-box-shadow: 0 0 4px 4px #fff;
}
}
@-moz-keyframes glow {
0% {
-moz-box-shadow: 0 0 0 0 #fff;
}
100% {
-moz-box-shadow: 0 0 4px 4px #fff;
}
}
@keyframes glow {
0% {
box-shadow: 0 0 0 0 #fff;
}
100% {
box-shadow: 0 0 4px 4px #fff;
}
}
@-webkit-keyframes slideup-small {
0% {
margin-top: 400px;
}
100% {
margin-top: 100px;
}
}
@-moz-keyframes slideup-small {
0% {
margin-top: 400px;
}
100% {
margin-top: 100px;
}
}
@keyframes slideup-small {
0% {
margin-top: 400px;
}
100% {
margin-top: 100px;
}
}
@-webkit-keyframes slideup-large {
0% {
margin-top: 370px;
}
100% {
margin-top: 70px;
}
}
@-moz-keyframes slideup-large {
0% {
margin-top: 370px;
}
100% {
margin-top: 70px;
}
}
@keyframes slideup-large {
0% {
margin-top: 370px;
}
100% {
margin-top: 70px;
}
}
@-webkit-keyframes appear {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@-moz-keyframes appear {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@keyframes appear {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
/*
Live version here: http://zcole.me/big-basin.html
*/
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.