Created
December 23, 2011 01:01
-
-
Save jordanorelli/1512590 to your computer and use it in GitHub Desktop.
I N J E C T I O N
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
<h1 id="injection" style="opacity: 0.0; text-align: center; width: 120%;">INJECTION</h1> | |
<script>(function(){ | |
var $injection = $("#injection"); | |
var $parent = $injection.parent().parent(); | |
$parent.children(".message-username").css({opacity: 0.0}); | |
var baseDuration = 2000.0; | |
$injection.animate({"letter-spacing": 50.0, opacity: 1.0}, baseDuration, "linear"); | |
$injection.animate({"letter-spacing": 100.0, opacity: 0.0}, baseDuration, "linear", function() { | |
$parent.remove(); | |
}); | |
})();</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment