fine tune animation onsubmit