Created
November 13, 2015 22:10
-
-
Save jonjaques/f29d0dd842dc56595a69 to your computer and use it in GitHub Desktop.
Trippy JS
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
$(function(){function t(){$("head").append("<style>"+i+"</style>"),$("body").addClass("blobbs"),$("body").append('<div class="trippy"/>')}var e=[38,38,40,40,37,39,37,39,66,65],o=0,i=".blobbs{background-size:66px 66px;background-color:#00a9ff;background-image:repeating-radial-gradient(hsla(200,100%,80%,.8) 0,hsla(200,100%,80%,.5) 4px,hsla(200,100%,80%,0) 50px),repeating-radial-gradient(hsla(260,100%,0%,0) 0,hsla(260,100%,50%,.1) 2px,hsla(260,100%,0%,0) 10px)}.blobbs:hover{animation:blobbs-position 6s cubic-bezier(.4,0,.2,1) infinite,blobbs-size .75s cubic-bezier(.4,0,.2,1) infinite alternate}@keyframes blobbs-position{0%,100%{background-position:left top,left top}25%{background-position:right top,left bottom}50%{background-position:right bottom,right bottom}75%{background-position:left bottom,right top}}@keyframes blobbs-size{from{background-size:200px 200px,200px 200px}to{background-size:66px 66px,66px 66px}}.trippy{position:fixed;z-index:99999;top:0;left:0;right:0;bottom:0;background:rgba(255,0,0,.5);animation:daytripper 2s alternate infinite}@keyframes daytripper{0%{-webkit-filter:hue-rotate(0) blur(0);-webkit-backdrop-filter:hue-rotate(0) blur(0)}50%{-webkit-filter:hue-rotate(180deg) blur(5px);-webkit-backdrop-filter:hue-rotate(180deg) blur(10px)}100%{-webkit-filter:hue-rotate(359deg) blur(10px);-webkit-backdrop-filter:hue-rotate(359deg) blur(20px)}}";$(document).keydown(function(i){i.keyCode===e[o++]?o===e.length&&($(document).unbind("keydown",arguments.callee),$.getScript("//www.cornify.com/js/cornify.js",function(){for(var e=0;50>e;e++)cornify_add();t(),$(document).keydown(cornify_add)})):o=0})}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment