I'm using the following code from Animating a CSS gradient background on the hover event which is amazing. However, I'd like the gradient to be left to right.
.gradient {
background: -webkit-linear-gradient(lightgray,white);
background: -moz-linear-gradient(lightgray,white);
background: -o-linear-gradient(lightgray,white);
background: linear-gradient(lightgray,white);
-webkit-transition: background 1s ease-out;
-moz-transition: background 1s ease-out;
-o-transition: background 1s ease-out;
transition: background 1s ease-out;
-moz-background-size: 1px 200px;
-o-background-size: 1px 200px;
-webkit-background-size: 1px 200px;
background-size: 1px 200px;
cursor: pointer;
}
.gradient:Hover {
background-position: 100px;
}
I tried adding left and replacing background with background-image as discussed here: http://www.webdirections.org/blog/css3-linear-gradients/
.gradient {
background: -webkit-linear-gradient(left, lightgray,white);
background: -moz-linear-gradient(left, lightgray,white);
background: -o-linear-gradient(left, lightgray,white);
background: linear-gradient(left, lightgray,white);
-webkit-transition: background 1s ease-out;
-moz-transition: background 1s ease-out;
-o-transition: background 1s ease-out;
transition: background 1s ease-out;
-moz-background-size: 1px 200px;
-o-background-size: 1px 200px;
-webkit-background-size: 1px 200px;
background-size: 1px 200px;
cursor: pointer;
}
.gradient:Hover {
background-position: 100px;
}
Still no dice.