Skip to content

Instantly share code, notes, and snippets.

@LeaVerou
Last active May 31, 2018 08:32
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 LeaVerou/79f8941d95f5afabdd3e6093d3660973 to your computer and use it in GitHub Desktop.
Save LeaVerou/79f8941d95f5afabdd3e6093d3660973 to your computer and use it in GitHub Desktop.
Converting between colors with filters
/**
* Converting between colors with filters
*/
body {
background: hsl(185, 100%, 25%);
}
div {
width: 200px;
height: 200px;
background: hsl(120, 100%, 25%);
filter: hue-rotate(65deg) saturate(77%);
}
// alert('Hello world!');
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment