Created
December 8, 2014 01:16
-
-
Save junrillg/f57d36b52850d546986f to your computer and use it in GitHub Desktop.
CSS: Animating A Gradient Background
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
button { | |
background-image: linear-gradient(#5187c4, #1c2f45); | |
background-size: auto 200%; | |
background-position: 0 100%; | |
transition: background-position 0.5s; | |
} | |
button:hover { | |
background-position: 0 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment