Skip to content

Instantly share code, notes, and snippets.

@szpakoli
Forked from lonekorean/gist:7759870
Created January 22, 2014 14:50
Show Gist options
  • Save szpakoli/8560009 to your computer and use it in GitHub Desktop.
Save szpakoli/8560009 to your computer and use it in GitHub Desktop.
button {
background-image: linear-gradient(#5187c4, #1c2f45);
background-size: auto 200%;
background-position: 0 100%;
transition: background-position 0.5s;
/* ...and various other button styles */
}
button:hover {
background-position: 0 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment