Skip to content

Instantly share code, notes, and snippets.

@mientjan
Created December 11, 2015 11:38
Show Gist options
  • Save mientjan/bed9158f2ce716c66c7d to your computer and use it in GitHub Desktop.
Save mientjan/bed9158f2ce716c66c7d to your computer and use it in GitHub Desktop.
javascript:(function(k)%7Bvar m,d,c,n%3Ddocument.body,h%3D"",a%3Dnavigator.userAgent,g%3D3%3Bswitch(true)%7Bcase a.indexOf("WebKit")!%3D-1:h%3D"webkit"%3Bbreak%3Bcase a.indexOf("Firefox")!%3D-1:h%3D"moz"%3Bbreak%3Bcase a.indexOf("Opera")!%3D-1:h%3D"o"%3Bbreak%3Bcase a.indexOf("Opera")!%3D-1:h%3D"o"%3Bbreak%7Dm%3Dh%2B"TransformStyle"%3Bd%3Dh%2B"Transform"%3Bc%3Dh%2B"Perspective"%3BperspectiveOrigin%3Dh%2B"PerspectiveOrigin"%3Bn.style%5Bm%5D%3D"preserve-3d"%3Bn.style%5Bd%5D%3D"translateZ(100px)"%3Bfor(var f%3D0,e%3Dn.childNodes.length%3Bf<e%3B%2B%2Bf)%7Bif(n.childNodes%5Bf%5D.nodeType!%3D3%26%26n.childNodes%5Bf%5D.style)%7Bn.childNodes%5Bf%5D.style%5Bc%5D%3D400%7D%7Dvar b%3D%5B%5D%3Bfunction j(s,t)%7Bvar o%3Ds.childNodes,q%3Dt*g%3Bs.style%5Bm%5D%3D"preserve-3d"%3Bfor(var r%3D0,p%3Do.length%3Br<p%3B%2B%2Br)%7Bif(o%5Br%5D.nodeType!%3D3%26%26o%5Br%5D.style)%7Bo%5Br%5D.style%5Bd%5D%3D"translateZ("%2Bq%2B"px)"%3Bb.push(o%5Br%5D)%3Bif(o%5Br%5D.childNodes.length>0)%7Bj(o%5Br%5D,t%2B1)%7D%7D%7D%7Ddocument.onmousemove%3Dfunction(o)%7Bvar i%3D-(0.5-(o.clientX/window.innerWidth))*90,l%3D(0.5-(o.clientY/window.innerHeight))*90%3Bn.style%5Bd%5D%3D"rotateX("%2Bl%2B"deg) rotateY("%2Bi%2B"deg)"%3Bn.style%5BperspectiveOrigin%5D%3D(window.scrollX%2B(window.innerWidth/2))%2B"px "%2B(window.scrollY%2B(window.innerHeight/2))%2B"px"%7D%3Bdocument.onkeydown%3Dfunction(i)%7Bif((i.keyCode%3D%3D109%7C%7Ci.keyCode%3D%3D189)%26%26g>0)%7Bg-%3D0.1%7Delse%7Bif(i.keyCode%3D%3D107%7C%7Ci.keyCode%3D%3D187)%7Bg%2B%3D0.1%7D%7Dj(document.body,0)%7D%3Bj(document.body,0)%7D)(window)%3B
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment