Skip to content

Instantly share code, notes, and snippets.

@leepettijohn
Created April 15, 2015 22:10
Show Gist options
  • Save leepettijohn/5f40f0656df13d791a70 to your computer and use it in GitHub Desktop.
Save leepettijohn/5f40f0656df13d791a70 to your computer and use it in GitHub Desktop.
Placeholder text disappear
/* *** Chrome and Safari */
[placeholder]:focus::-webkit-input-placeholder {
transition: opacity 0.5s 0.5s ease;
opacity: 0;
}
/* *** Firefox */
[placeholder]:focus::-moz-placeholder {
opacity: 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment