Skip to content

Instantly share code, notes, and snippets.

@LinzardMac
Created March 1, 2014 02:00
Show Gist options
  • Save LinzardMac/9283710 to your computer and use it in GitHub Desktop.
Save LinzardMac/9283710 to your computer and use it in GitHub Desktop.
A Pen by Lindsay B. .
<div id="container">
<div id="link" >Welcome</div>
<div id="menu">
<div class="front face">
<p>WE'RE OPEN!</p>
</div>
</div>
</div>
/* just some pretty fonts */
WebFontConfig = {
google: { families: [ 'Oleo+Script+Swash+Caps:700:latin', 'Concert+One::latin' ] }
};
(function() {
var wf = document.createElement('script');
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
'://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
wf.type = 'text/javascript';
wf.async = 'true';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(wf, s);
})();
html{
background:#596778;
}
#container{
width: 33%;
margin:0px auto;
margin-top:40px;
}
#link{
color:#fff;
z-index:9999;
position:relative;
background:#f0776c;
width:200px;
border: 0;
border-bottom: 2px solid #d76b60;
border-radius: 5px;
cursor: pointer;
-webkit-box-shadow: inset 0 -2px #d76b60;
text-shadow: 4px 3px #d76b60;
box-shadow: inset 0 -2px #d76b60;
cursor:pointer;
text-align:center;
font-family: 'Oleo Script Swash Caps', cursive;
font-style:italic;
font-size: 48px;
line-height: 40px;
margin:0px auto;
padding: 27px;
font-weight: 100;
}
#link:hover + #menu {
transform: rotateX(0deg);
-ms-transform:rotateX(0deg); /* IE 9 */
-webkit-transform:rotateX(0deg); /* Opera, Chrome, and Safari */
color:red;
z-index:-99999;
position:relative;
visibility:visible;
}
#menu {
pointer-events: none;
transform-style: preserve-3d;
transition: all 1s linear;
transform: rotateX(180deg);
-webkit-transform:rotateX(180deg);
-webkit-transform-origin: 0% 0%;
z-index:-99999;
position:relative;
transition-timing-function: cubic-bezier(0, 0.35, .5, 1.8);
-webkit-transition-timing-function: cubic-bezier(0, 0.35, .5, 1.8);
visibility:hidden;
text-align:center;
width: 250px;
padding-top: 8px;
margin:0px auto;
}
.face::before{
content: '';
position: absolute;
top: 5px;
left: 0;
right: 0;
height: 18px;
background: #c4e17f;
border-radius: 5px 5px
background-image: -webkit-linear-gradient(left, #c4e17f, #c4e17f 12.5%, #f7fdca 12.5%, #f7fdca 25%, #fecf71 25%, #fecf71 37.5%, #f0776c 37.5%, #f0776c 50%, #db9dbe 50%, #db9dbe 62.5%, #c49cde 62.5%, #c49cde 75%, #669ae1 75%, #669ae1 87.5%, #62c2e4 87.5%, #62c2e4);
background-image: -moz-linear-gradient(left, #c4e17f, #c4e17f 12.5%, #f7fdca 12.5%, #f7fdca 25%, #fecf71 25%, #fecf71 37.5%, #f0776c 37.5%, #f0776c 50%, #db9dbe 50%, #db9dbe 62.5%, #c49cde 62.5%, #c49cde 75%, #669ae1 75%, #669ae1 87.5%, #62c2e4 87.5%, #62c2e4);
background-image: -o-linear-gradient(left, #c4e17f, #c4e17f 12.5%, #f7fdca 12.5%, #f7fdca 25%, #fecf71 25%, #fecf71 37.5%, #f0776c 37.5%, #f0776c 50%, #db9dbe 50%, #db9dbe 62.5%, #c49cde 62.5%, #c49cde 75%, #669ae1 75%, #669ae1 87.5%, #62c2e4 87.5%, #62c2e4);
background-image: linear-gradient(to right, #c4e17f, #c4e17f 12.5%, #f7fdca 12.5%, #f7fdca 25%, #fecf71 25%, #fecf71 37.5%, #f0776c 37.5%, #f0776c 50%, #db9dbe 50%, #db9dbe 62.5%, #c49cde 62.5%, #c49cde 75%, #669ae1 75%, #669ae1 87.5%, #62c2e4 87.5%, #62c2e4);
}
.face{
color: #aaa;
font-weight: bold;
font-size: 22px;
text-shadow: 0 1px rgba(255, 255, 255, 1);
background: #f7f7f7;
border-top: 16px solid #B6B0B0;
border-right: 4px solid #E0DEDE;
border-bottom: 4px solid #E0DEDE;
border-left: 4px solid #E0DEDE;
text-align: center;
font-family: san-serif;
padding: 20px 0px;
width: 242px;
}
.face p{
margin:0px;
font-family: 'Concert One', cursive;
}
#link::after{
position: absolute;
content: '';
width: 10px;
height: 23px;
bottom: -15px;
left: 25px;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
border-bottom:1px solid #000;
background: #cccccc; /* Old browsers */
background: -moz-linear-gradient(top, #cccccc 2%, #f4f4f4 50%, #cccccc 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(2%,#cccccc), color-stop(50%,#f4f4f4), color-stop(100%,#cccccc)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #cccccc 2%,#f4f4f4 50%,#cccccc 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #cccccc 2%,#f4f4f4 50%,#cccccc 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #cccccc 2%,#f4f4f4 50%,#cccccc 100%); /* IE10+ */
background: linear-gradient(to bottom, #cccccc 2%,#f4f4f4 50%,#cccccc 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cccccc', endColorstr='#cccccc',GradientType=0 ); /* IE6-9 */
-webkit-box-shadow: 0px -2px 0px 0px rgba(29, 24, 24, 0.75);
-moz-box-shadow: 0px -2px 0px 0px rgba(29, 24, 24, 0.75);
box-shadow: 0px -2px 0px 0px rgba(29, 24, 24, 0.75);
}
#link::before{
position: absolute;
content: '';
width: 10px;
height: 23px;
bottom: -15px;
left: 218px;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
border-bottom:1px solid #000;
background: #cccccc; /* Old browsers */
background: -moz-linear-gradient(top, #cccccc 2%, #f4f4f4 50%, #cccccc 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(2%,#cccccc), color-stop(50%,#f4f4f4), color-stop(100%,#cccccc)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #cccccc 2%,#f4f4f4 50%,#cccccc 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #cccccc 2%,#f4f4f4 50%,#cccccc 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #cccccc 2%,#f4f4f4 50%,#cccccc 100%); /* IE10+ */
background: linear-gradient(to bottom, #cccccc 2%,#f4f4f4 50%,#cccccc 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cccccc', endColorstr='#cccccc',GradientType=0 ); /* IE6-9 */
-webkit-box-shadow: 0px -2px 0px 0px rgba(29, 24, 24, 0.75);
-moz-box-shadow: 0px -2px 0px 0px rgba(29, 24, 24, 0.75);
box-shadow: 0px -2px 0px 0px rgba(29, 24, 24, 0.75);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment