changed animation code for textfields