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
<form class="email-signup"> | |
<label id="email-signup-label">Sign-up for news, special offers & beta invites.</label> | |
<input type="text" /> | |
</form> |
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(); |
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
/* | |
STUFF'S GONNA 'SPLODE | |
--------------------- | |
The following CSS enables the exploding effect on the input label. | |
(Only seen on modern browsers.) | |
Context: http://gopotluck.com/ | |
Related tutorial: http://designintellection.com/lab/exploding-text/ | |
*/ |
NewerOlder