Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jbyck
Created June 4, 2012 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbyck/2868714 to your computer and use it in GitHub Desktop.
Save jbyck/2868714 to your computer and use it in GitHub Desktop.
HTML/CSS Banner
<div id="hire" class="fadeInDown">
<h3>
<a href="/hire.html">HIRE ME</a>
</h3>
<div class="arrow"></div>
</div>
@mixin logo-gradient($color-one, $color-two) {
background: $color-one; /* Old browsers */
background: -moz-linear-gradient(left, $color-one 0%, $color-two 81%);
background: -webkit-gradient(linear, left top, right top, color-stop(0%,$color-one), color-stop(81%,$color-two));
background: -webkit-linear-gradient(left, $color-one 0%,$color-two 81%);
background: -o-linear-gradient(left, $color-one 0%,$color-two 81%);
background: -ms-linear-gradient(left, $color-one 0%,$color-two 81%);
background: linear-gradient(left, $color-one 0%,$color-two 81%);
}
@mixin animation($time, $fill) {
-webkit-animation-duration: $time;
-moz-animation-duration: $time;
-ms-animation-duration: $time;
-o-animation-duration: $time;
animation-duration: $time;
-webkit-animation-fill-mode: $fill;
-moz-animation-fill-mode: $fill;
-ms-animation-fill-mode: $fill;
-o-animation-fill-mode: $fill;
animation-fill-mode: $fill;
}
#hire {
@include animation(1.2s, 'both');
width: 102px;
height: 112px;
position: absolute;
top: 0;
right: 25%;
h3 {
font-size: 18px;
font-family: 'museo-sans';
text-align: center;
margin-top: 25px;
a {
color: #FFF;
text-decoration: none;
}
}
.arrow {
position: absolute;
bottom: 0;
width: 0;
height: 0;
border-left: 51px solid transparent;
border-right: 51px solid transparent;
border-bottom: 51px solid #FFF;
}
}
.cssgradients {
#hire {
@include logo-gradient(#422411, #3c5985);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment