Just playing with some CSS filters and how they animate.
A Pen by Saminou yengue kizidi on CodePen.
Just playing with some CSS filters and how they animate.
A Pen by Saminou yengue kizidi on CodePen.
<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); } | |
} |