Skip to content

Instantly share code, notes, and snippets.

@fazlurr
Forked from LeaVerou/dabblet.css
Created June 22, 2014 14:32
Show Gist options
  • Select an option

  • Save fazlurr/f9ca63270396a6bea923 to your computer and use it in GitHub Desktop.

Select an option

Save fazlurr/f9ca63270396a6bea923 to your computer and use it in GitHub Desktop.
Color tinting images
/**
* Color tinting images
* Important: Blending modes need to be enabled (Chrome: Experimental Web Platform Features flag, Firefox: layout.css.background-blend-mode.enabled pref)
* Photo: https://flickr.com/photos/tangledcontrolpads/246642987
*/
height: 100vh;
background: url('https://c1.staticflickr.com/1/85/246642987_df591a5a33_b.jpg') no-repeat center hsl(335, 100%, 50%);
background-size: cover;
background-blend-mode: luminosity;
/* With filters (not as good):
-webkit-filter: grayscale() sepia() saturate(3) hue-rotate(295deg);
filter: grayscale() sepia() saturate(3) hue-rotate(295deg); */
<!-- content to be placed inside <body>…</body> -->
// alert('Hello world!');
{"view":"split","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