Created
April 2, 2015 09:12
-
-
Save spite/044e89f7f42ddfaaab65 to your computer and use it in GitHub Desktop.
Like tears in the rain
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() { | |
var b = document.body; | |
document.addEventListener( | |
'touchstart', function(evt) { | |
var o = parseFloat( getComputedStyle( b, null ).getPropertyValue( 'opacity' ) ); | |
b.style.opacity = o - .005; | |
} | |
); | |
} )(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment