Created
March 8, 2011 05:39
-
-
Save davidyeiser/859908 to your computer and use it in GitHub Desktop.
Associated jQuery for text explosion. As seen on http://gopotluck.com/
This file contains 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() { | |
$("#email-signup-label").lettering(); | |
var is_search_empty = $(".email-signup input").attr("value"); | |
if (!is_search_empty == "") { | |
$("#email-signup-label").css({opacity:0}); | |
} | |
$("#email-signup-label").click(function() { | |
$(".email-signup input").focus(); | |
$("#email-signup-label").animate({opacity:0}, 250); | |
}); | |
$(".email-signup input").blur(function() { | |
var is_search_empty = $(".email-signup input").attr("value"); | |
if (is_search_empty == "") { | |
$("#email-signup-label").animate({opacity:1}, 250); | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment