How to have animated effects on form fields