Last active
September 19, 2021 15:21
-
-
Save csssecrets/b338c9940a31b727b7a9 to your computer and use it in GitHub Desktop.
Color tinting — 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
/** | |
* Color tinting — with filters | |
*/ | |
img { | |
max-width: 640px; | |
transition: 1s filter, 1s -webkit-filter; | |
-webkit-filter: sepia() saturate(4) hue-rotate(295deg); | |
filter: sepia() saturate(4) hue-rotate(295deg); | |
} | |
img:hover, | |
img:focus { | |
-webkit-filter: none; | |
filter: none; | |
} |
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
<img src="http://csssecrets.io/images/tiger.jpg" /> |
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":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment