Skip to content

Instantly share code, notes, and snippets.

@hileon
Created March 27, 2012 04:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hileon/2212445 to your computer and use it in GitHub Desktop.
Save hileon/2212445 to your computer and use it in GitHub Desktop.
less css transition
.css3_gradient(@from, @to, @fallback: @to) {
background-color:@fallback;
background-image:-webkit-gradient(linear, left top, left bottom, from(@from), to(@to));
background-image:-webkit-linear-gradient(top, @from, @to);
background-image:-moz-linear-gradient(top, @from, @to);
background-image:-ms-linear-gradient(top, @from, @to);
background-image:-o-linear-gradient(top, @from, @to);
background:linear-gradient(to left bottom, @from, @to);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment