Last active
May 31, 2018 08:32
-
-
Save LeaVerou/79f8941d95f5afabdd3e6093d3660973 to your computer and use it in GitHub Desktop.
Converting between colors with filters
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
/** | |
* 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%); | |
} |
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
<div></div> |
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
// alert('Hello world!'); |
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
{"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