Created
April 10, 2015 01:12
-
-
Save himynameisdave/c7a7ed14500d29e58149 to your computer and use it in GitHub Desktop.
broken gradient animation
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
// For brevity, vendor prefixes have been removed. | |
// This does not work as expected; instead of a smooth transition | |
// what you get is a hard swap from one gradient to the next | |
.super-cool-background-that-SHOULD-animate-on-hover { | |
background: linear-gradient( #fff, #ccc ); | |
transition: all 0.45s; | |
&:hover{ | |
background: linear-gradient( #ccc, #fff ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment