Edit This Code:
<!DOCTYPE html>
<html>
<title>W3.CSS</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../lib/w3.css">
<body>

<form class="w3-container">
<h2>Animated Inputs</h2>

<p>The w3-animate-input class animates the width of an input to 100%. Click on the inputs below to see the effect:</p>
  
<input class="w3-input w3-animate-input" type="text" style="width:135px"><br>
  
<input class="w3-input w3-border w3-animate-input" type="text" style="width:30%">

</form>

</body>
</html>


Result:
Try it Yourself - © w3schools.com
Privacy Policy