How TO - Animated Search Form
Learn how to create an animated search form with CSS.
How To Create an Animated Search Form
Click on the input field:
Step 1) Add HTML:
Step 2) Add CSS:
-webkit-transition: width 0.4s ease-in-out;
transition: width 0.4s ease-in-out;
/* When the input field gets focus, change its width to 100% */
Go to our CSS Forms Tutorial to learn more about how to style HTML Forms.