Created
October 24, 2012 17:11
-
-
Save xav76/3947387 to your computer and use it in GitHub Desktop.
A CodePen by Adam Girton. Sign Up Form - Because you can never have to many forms with lionel richie
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="coming-soon"> | |
<form> | |
<input type="email" placeholder="[email protected]"> | |
<input type="submit" value="Sign In"> | |
</form> | |
</div> | |
<img src="http://db.tt/f0jVtWmo" alt="lionel"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Because you can never have to many forms with lionel richie | |
* | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import "compass"; | |
* { | |
border-box: box-sizing; | |
} | |
html { | |
background-color: #e5e8e7; | |
height: 100%; | |
overflow: hidden; | |
width: 100%; | |
} | |
.coming-soon { | |
height: 105px; | |
left: 50%; | |
margin-left: -256px; | |
margin-top: -36px; | |
overflow: hidden; | |
position: absolute; | |
top: 50%; | |
&:after { | |
border-radius: 100%; | |
box-shadow: 0 -10px 10px 0 rgba(0,0,0,0.3); | |
content: ""; | |
left: 15px; | |
position: absolute; | |
height: 10px; | |
top: 109px; | |
width: 320px; | |
} | |
} | |
form { | |
background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.3)); | |
border: 1px solid rgba(0,0,0,0.3); | |
border-radius: 6px; | |
box-shadow: inset 0 1px 3px rgba(255,255,255,0.4), | |
0 1px 3px rgba(0,0,0,0.45); | |
padding: 10px; | |
position: relative; | |
animation: appear 1.5s ease; | |
&:after { | |
background: #e5e8e7; | |
content: ""; | |
height: 50px; | |
position: absolute; | |
top: 80px; | |
width: 350px; | |
z-index: 999; | |
} | |
} | |
input { | |
border-radius: 5px; | |
height: 34px; | |
padding: 0; | |
} | |
input[type="email"] { | |
background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.3)); | |
border: 1px solid rgba(0,0,0,0.48); | |
box-shadow: inset 0 1px 2px rgba(0,0,0,0.4), | |
0 1px 0 rgba(255,255,255,0.5); | |
padding-left: 10px; | |
width: 240px; | |
appearance: none; | |
&::-webkit-input-placeholder { | |
color: rgba(0,0,0,0.6); | |
} | |
&:moz-input-placeholder { | |
color: rgba(0,0,0,0.6); | |
} | |
&:focus { | |
background: linear-gradient(#d1d5d2, #fefefe); | |
box-shadow: 0 1px 0 rgba(255,255,255,0.5); | |
outline: none; | |
} | |
} | |
input[type="submit"] { | |
background: linear-gradient(#58a9e2, #346cce); | |
border: 1px solid rgba(0,0,0,0.48); | |
box-shadow: inset 0 1px 3px rgba(255,255,255,0.4), | |
0 1px 2px rgba(0,0,0,0.45); | |
color: #fff; | |
display: inline-block; | |
font-weight: bold; | |
height: 35px; | |
margin-left: 5px; | |
text-shadow: 0 -1px 0 rgba(0,0,0,0.2); | |
width: 76px; | |
&:hover { | |
background: linear-gradient(#6db1e1, #4375cc); | |
} | |
&:active { | |
box-shadow: inset 0 1px 2px rgba(0,0,0,0.45), | |
0 1px 3px rgba(255,255,255,0.4); | |
} | |
} | |
img { | |
bottom: -200px; | |
left: 0; | |
opacity: 0; | |
position: absolute; | |
animation: richie 4s linear; | |
z-index: 9999; | |
} | |
@keyframes appear { | |
0%,50% { | |
bottom: -150px; | |
} | |
100% { | |
bottom: 0; | |
} | |
} | |
@keyframes richie { | |
0%, 20% { | |
bottom: -100px; | |
opacity: 0; | |
left: 2000px; | |
} | |
50%, 90% { | |
bottom: 0; | |
opacity: 1; | |
} | |
100% { | |
bottom: -100px; | |
opacity: 0; | |
left: 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment