Custom Placeholder Animation

</ head>

<!-- Input Field Placeholder Animation --> 
  ::placeholder {
  	transition: all 350ms ease;
  .your-input-class:focus::placeholder {
  	transform: translate(20px, 0);
    opacity: 0.0;
  .your-textarea-class:focus::placeholder {
  	transform: translate(20px, 0);
    opacity: 0.0;

</ body>


Noah Raskin
Jun 12, 2020

How to use:

Tutorial Coming Soon!

Check Browser Support

Interactive Table


Unfortunately at this time we don't have SSO for comments so you will have to sign up separately to leave your comment. Thanks for understanding!

This small snippet allows you to animate or add a transition to your placeholder text when an input field is focused. You can expand on the transition animations to whatever you'd like.

Clone Project
Built by
Built with
For the best experience

Please switch to desktop to view the content.

Back Home
Thank you! Your submission has been received!
Close Form
Oops! Something went wrong while submitting the form.
Become a Contributor