Skip to content

Instantly share code, notes, and snippets.

@fidlerryan
Last active July 15, 2016 15:37
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 fidlerryan/69c79b01961c0a828a23c4ba0831cd41 to your computer and use it in GitHub Desktop.
Save fidlerryan/69c79b01961c0a828a23c4ba0831cd41 to your computer and use it in GitHub Desktop.
Animated Gradients
<style>
.encapsulated li{
font-size: 16px;
text-transform: uppercase;
margin: 0;
letter-spacing: .04em;
line-height: 72px;
list-style-type: none;
border-bottom: solid 1px #0c445d;
}
.encapsulated a{
display: block;
color: #1fb9ef;
padding: 0 0.846em;
background: linear-gradient(to left, #093447 50%, #072634 50%);
background-size: 200% 100%;
background-position: right bottom;
transition: background .25s ease-out;
}
.encapsulated a:hover{
background-position: left bottom;
}
</style>
<div class="encapsulated">
<ul>
<li><a href="/">Home</a></li>
<li><a href="work">Work</a><li>
<li><a href="blog">Blog</a></li>
<li><a href="contact">Contact</a></li>
</ul>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment