Last active
July 15, 2016 15:37
-
-
Save fidlerryan/69c79b01961c0a828a23c4ba0831cd41 to your computer and use it in GitHub Desktop.
Animated Gradients
This file contains 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
<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