Created
December 4, 2012 14:43
-
-
Save Aqro/4204659 to your computer and use it in GitHub Desktop.
Filters, filters everywhere.
This file contains hidden or 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
/** | |
* Filters, filters everywhere. | |
*/ | |
* {margin: 0; padding: 0;} | |
html, body {height: 100%; width: 100%;} | |
body { | |
overflow: hidden; | |
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | |
} | |
img { | |
-webkit-transition: all .3s ease; | |
width: 100%; | |
position: absolute; | |
top: 0; | |
left: 0; | |
} | |
section { | |
width: 15%; | |
float: left; | |
height: 50px; | |
background: rgba(255,255,255,.5); | |
border-radius: 50px; | |
line-height: 50px; | |
text-align: center; | |
position: relative; | |
z-index: 5; | |
margin-top: 300px; | |
font-size: 14px; | |
margin-left: 4%; | |
} | |
.saturate:hover ~ img {-webkit-filter: saturate(1000%);} | |
.blur:hover ~ img { -webkit-filter: blur(50px);} | |
.sepia:hover ~ img { -webkit-filter: sepia(100%);} | |
.hue-rotate:hover ~ img { -webkit-filter: hue-rotate(180deg);} | |
.contrast:hover ~ img { -webkit-filter: contrast(500%);} |
This file contains hidden or 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
<section class="saturate">-webkit-filter: saturate(4000%)</section> | |
<section class="blur">-webkit-filter: blur(50px)</section> | |
<section class="sepia">-webkit-filter: sepia(100%)</section> | |
<section class="hue-rotate">-webkit-filter: hue-rotate(180deg)</section> | |
<section class="contrast">-webkit-filter: contrast(500%)</section> | |
<img src="http://narwhaler.com/img/xj/u/come-at-me-bro-bullet-cat-xjuW5k.jpg" /> |
This file contains hidden or 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 hidden or 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","fontsize":"100","seethrough":"","prefixfree":"1","page":"result"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment