Skip to content

Instantly share code, notes, and snippets.

@Saminou24
Created October 25, 2013 11:30
Show Gist options
  • Save Saminou24/7153228 to your computer and use it in GitHub Desktop.
Save Saminou24/7153228 to your computer and use it in GitHub Desktop.
A Pen by Saminou yengue kizidi.
<p>Playing with CSS Filters and Transitions<p>
<img width="250" class="blur" src="http://placekitten.com/250/250" />
<img width="250" class="hue" src="http://placekitten.com/250/250" />
<img width="250" class="saturate" src="http://placekitten.com/250/250" />
<img width="250" class="brightness" src="http://placekitten.com/250/250" />
<img width="250" class="omgwtfbbq" src="http://placekitten.com/250/250" />
body {background-color:#000;color:#fff;text-align:center;}
.blur {
-webkit-animation: blur 3s infinite;
}
@-webkit-keyframes blur {
0%, 100% { -webkit-filter: blur(0px); }
50% { -webkit-filter: blur(10px); }
}
.hue {
-webkit-animation: hue 3s infinite;
}
@-webkit-keyframes hue {
0%, 100% { -webkit-filter: hue-rotate(0deg); }
50% { -webkit-filter: hue-rotate(180deg); }
}
.saturate {
-webkit-animation: saturate 3s infinite;
}
@-webkit-keyframes saturate {
0%, 100% { -webkit-filter: saturate(none); }
50% { -webkit-filter: saturate(10); }
}
.brightness {
-webkit-animation: brightness 3s infinite;
}
@-webkit-keyframes brightness {
0%, 100% { -webkit-filter: brightness(none); }
50% { -webkit-filter: brightness(10); }
}
.omgwtfbbq {
-webkit-animation: omgwtfbbq 3s infinite;
}
@-webkit-keyframes omgwtfbbq {
0%, 100% { -webkit-filter: blur(0px) brightness(none) hue-rotate(0deg) saturate(none); }
50% { -webkit-filter: brightness(10) blur(10px) hue-rotate(180deg) saturate(10); }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment