<body>
<div class="banff">
<div class="banff-frame"></div>
<div class="banff-border">
<div class="banff-header">
<h1>BANFF</h1>
</div>
<div class="banff-sun"></div>
<div class="banff-mountains">
<div class="banff-mountain-left">
<div class="banff-snow-left"></div>
</div>
<div class="banff-mountain-right">
<div class="banff-snow-right"></div>
</div>
</div>
</div>
<div class="banff-country">
<p>Alberta, CA</p>
</div>
</div>
</body>
/*
Title: Park Patches
Author: Zach Cole
Inspiration: https://dribbble.com/shots/806996-Vintage-Ski-Patches
*/
@import url(https://fonts.googleapis.com/css?family=Ubuntu:400,700);
body {
top: 0;
left: 0;
margin: 0;
background: rgba(30, 01, 200, 0.1);
}
.banff {
height: 420px;
width: 320px;
margin: 100px auto 0 auto;
}
.banff-border {
position: relative;
background: none;
height: 400px;
width: 300px;
border: 0px solid transparent;
overflow: hidden;
}
.banff-border:before {
content: "";
position: absolute;
background: #cddce0;
height: 400px;
width: 300px;
z-index: -2;
}
.banff-frame {
position: absolute;
background: none;
height: 395px;
width: 300px;
border: 20px solid #334d63;
border-radius: 60px 60px 60px 60px;
margin: -20px 0 0 -20px;
overflow: hidden;
z-index: 5;
}
.banff-header {
position: relative;
display: table;
background: #eeede7;
height: 80px;
width: 300px;
z-index: -1;
}
.banff-header h1 {
display: table-cell;
vertical-align: middle;
text-align: center;
font-family: 'Ubuntu', arial, sans-serif;
font-size: 3em;
font-weight: 700;
letter-spacing: 10px;
color: #334d63;
}
.banff-sun {
position: relative;
background: #fcce5b;
height: 150px;
width: 150px;
border-radius: 50%;
border: 20px solid #fce39f;
margin: 36px auto 0 auto;
-webkit-animation: glow 1.5s;
-moz-animation: glow 1.5s;
animation: glow 1.5s;
}
.banff-sun:before {
content: "";
position: absolute;
background: #ffc107;
height: 100px;
width: 100px;
border-radius: 50%;
margin: 25px 0 0 25px;
-webkit-animation: glow 1.5s;
-moz-animation: glow 1.5s;
animation: glow 1.5s;
}
.banff-mountains {
position: relative;
-moz-animation: slideup 1.2s ease;
-webkit-animation: slideup 1.2s ease;
animation: slideup 1.2s ease;
}
.banff-mountain-left {
position: relative;
width: 0;
height: 0;
border-bottom: 250px solid #334d63;
border-left: 160px solid transparent;
border-right: 160px solid transparent;
margin: -74px 0 0 -40px;
}
.banff-mountain-right {
position: relative;
width: 0;
height: 0;
border-bottom: 250px solid #334d63;
border-left: 160px solid transparent;
border-right: 160px solid transparent;
margin: -280px 0 0 20px;
}
.banff-snow-left {
position: relative;
height: 0;
width: 0;
border-bottom: 250px solid #eeede7;
border-left: 160px solid transparent;
border-right: 160px solid transparent;
top: 40px;
margin-left: -160px;
z-index: 4;
}
.banff-snow-right {
position: relative;
height: 0;
width: 0;
border-bottom: 250px solid #eeede7;
border-left: 160px solid transparent;
border-right: 160px solid transparent;
top: 40px;
margin-left: -160px;
z-index: 4;
}
.banff-country {
position: relative;
margin: 40px auto 0 auto;
}
.banff-country p {
text-align: center;
text-transform: uppercase;
font-family: 'Ubuntu', arial, sans-serif;
font-size: 1.5em;
font-weight: 700;
letter-spacing: 2px;
color: #334d63;
}
@-webkit-keyframes slideup {
from {
margin-top: 400px;
}
to {
margin-top: 0px;
}
}
@-moz-keyframes slideup {
from {
margin-top: 400px;
}
to {
margin-top: 0px;
}
}
@keyframes slideup {
from {
margin-top: 400px;
}
to {
margin-top: 0px;
}
}
@-webkit-keyframes glow {
0% { transform: scale(0.4); }
50% { transform: scale(1.1); }
100% { transform: scale(1); }
}
@-moz-keyframes glow {
0% { transform: scale(0.4); }
50% { transform: scale(1.1); }
100% { transform: scale(1); }
}
@keyframes glow {
0% { transform: scale(0.4); }
50% { transform: scale(1.1); }
100% { transform: scale(1); }
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.